event
onPlayerDamageServer (client-side)
Available since version: 0.3.5
This event is triggered when a player or npc is damaged by the server.
Parameters
int killerid, int playerid, DamageDescription description
int
killerid: the id of the killer. If killerid is set to-1
, it means that there was no killer. In this particular case damage source can be fall damage or scripts.int
playerid: the id of the player who was damaged.DamageDescription
description: a structure containing damage information. For more information see DamageDescription