event onPlayerSpellCast (server-side)
Available since version: 0.1.3
This event can be canceled
Right now transformation and summon spells are not supported, despite this event will be triggered for them. Cancelling this event willl prevent this action to be synced to other players.
This event is triggered when player is casting some spell.
int playerid, int itemId
intplayerid: the id of the player who casts the spell.
intitemId: the item id used to cast the spell.