Wizards of Lua

The Art of Spell Crafting


PlayerRespawnEvent - When a Player is Reborn

The PlayerRespawnEvent is fired whenever a Player is reborn.

The PlayerRespawnEvent class is a subtype of the Event class and inherits all its properties and functions.

Here is an overview of the PlayerRespawnEvent properties:

Property Type read / write
endConquered boolean r
player Player r

Properties

Below you find short descriptions about each of the properties and some examples about how to use them in your spells.


endConquered : boolean

This is true if this respawn was because the player conquered the end.


player : Player

The player who respawned in the world.