Class RespawnEvent

All Implemented Interfaces:
ICancellableEcsEvent

public class RespawnEvent extends CancellableEcsEvent
An event that is called when a dead player is about to respawn: from the respawn screen, from its dismissal, and from the /player respawn command. The command's revive of a player converted into a death gamemode type skips the event, as a deliberate operator override.

If cancelled, the player stays dead. A cancel from the respawn screen keeps the screen open. A cancel from a dismissal drops the screen until the player rejoins.

  • Constructor Details

    • RespawnEvent

      public RespawnEvent()