Class PlayerRespawnEvent


  • public class PlayerRespawnEvent
    extends PlayerEvent
    Called when a player respawns.
    • 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.
      • isAnchorSpawn

        public boolean isAnchorSpawn()
        Gets whether the respawn location is the player's respawn anchor.
        Returns:
        true if the respawn location is the player's respawn anchor.