Class PlayerRespawnEvent


  • public class PlayerRespawnEvent
    extends PlayerEvent
    Called when a player respawns.
    • Constructor Detail

      • PlayerRespawnEvent

        public PlayerRespawnEvent​(@NotNull
                                  Player respawnPlayer,
                                  @NotNull
                                  Location respawnLocation,
                                  boolean isBedSpawn)
    • Method Detail

      • getRespawnLocation

        @NotNull
        public Location getRespawnLocation()
        Gets the current respawn location
        Returns:
        Location current respawn location
      • setRespawnLocation

        public void setRespawnLocation​(@NotNull
                                       Location respawnLocation)
        Sets the new respawn location
        Parameters:
        respawnLocation - new location for the respawn
      • isBedSpawn

        public boolean isBedSpawn()
        Gets whether the respawn location is the player's bed.
        Returns:
        true if the respawn location is the player's bed.
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()