onDeath

fun Player.onDeath(callback: PlayerDeathEvent.() -> Unit)

Custom Interaction Method for the PlayerDeathEvent. Register SmartEvents and use the Event Manager.

See also


fun Entity.onDeath(callback: EntityDeathEvent.() -> Unit)

Custom Interaction Method for the EntityDeathEvent. Register SmartEvents and use the Event Manager.

See also