Event
onPlayerDie
This is a function decorator.
The decorated function will be called when a player dies for any reason.
Parameters
This decorator doesn't take any parameters.
- The
@sis the player who died. - The
execution positionis the position of the player at the time of death.
Example
You can use this to create custom death messages or effects: