Player Got Hurt Event
class PlayerGotHurtEvent(val victim: Player, val cause: EntityDamageEvent.DamageCause, val damage: Double) : Event, Cancellable
This event is called when a player receives damage from any source.
Parameters
victim
The player that was hit.
cause
The cause of the damage.
damage
The damage that the victim will take.