PlayerGotHurtEvent

constructor(victim: Player, cause: EntityDamageEvent.DamageCause, damage: Double)

Parameters

victim

The player that was hit.

cause

The cause of the damage.

damage

The damage that the victim will take.