Class PlayerPostRespawnEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.destroystokyo.paper.event.player.PlayerPostRespawnEvent

@NullMarked public class PlayerPostRespawnEvent extends PlayerEvent
Fired after a player has respawned
  • Constructor Details

    • PlayerPostRespawnEvent

      @Internal public PlayerPostRespawnEvent(Player respawnPlayer, Location respawnedLocation, boolean isBedSpawn)
  • Method Details

    • getRespawnedLocation

      public Location getRespawnedLocation()
      Returns the location of the respawned player
      Returns:
      location of the respawned player
    • isBedSpawn

      public boolean isBedSpawn()
      Checks if the player respawned to their bed
      Returns:
      whether the player respawned to their bed
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()