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
ConstructorDescriptionPlayerPostRespawnEvent
(@NotNull Player respawnPlayer, @NotNull Location respawnedLocation, boolean isBedSpawn) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Returns the location of the respawned playerboolean
Checks if the player respawned to their bedMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods 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:
getHandlers
in classEvent
-
getHandlerList
-