Class PlayerPostRespawnEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.destroystokyo.paper.event.player.PlayerPostRespawnEvent
Fired after a player has respawned
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerPostRespawnEvent(@NotNull Player respawnPlayer, @NotNull Location respawnedLocation, boolean isBedSpawn) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerListReturns the location of the respawned playerbooleanChecks if the player respawned to their bedMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerPostRespawnEvent
-
-
Method Details
-
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
- Specified by:
getHandlersin classEvent
-
getHandlerList
-