onPlayerDamage

public void onPlayerDamage(EntityDamageEvent event)

This event scans for damage that would kill the player and cancels it with custom behavior it if would

Parameters

event

Damage event