Class PlayerEvent.PlayerRespawnEvent

Enclosing class:
PlayerEvent

public static class PlayerEvent.PlayerRespawnEvent extends PlayerEvent
Fired when the player is respawned via
invalid reference
PlayerList#respawn(ServerPlayer, boolean)
after creating and initializing the new ServerPlayer.

This event is not cancellable, and is fired on the game event bus.

  • Field Details

    • endConquered

      private final boolean endConquered
  • Constructor Details

    • PlayerRespawnEvent

      public PlayerRespawnEvent(Player player, boolean endConquered)
  • Method Details

    • isEndConquered

      public boolean isEndConquered()
      Did this respawn event come from the player conquering the end?
      Returns:
      if this respawn was because the player conquered the end