event
onPlayerSpellCast (server-side)
Available since version: 0.1.3
This event can be canceled
Note
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.
Parameters
int playerid, int itemId
int
playerid: the id of the player who casts the spell.int
itemId: the item id used to cast the spell.