public class PlayerRespawnEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
PlayerRespawnEvent(Player respawnPlayer,
Location respawnLocation,
boolean isBedSpawn) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
Location |
getRespawnLocation() |
Gets the current respawn location
|
boolean |
isBedSpawn() |
Gets whether the respawn location is the player's bed.
|
void |
setRespawnLocation(Location respawnLocation) |
Sets the new respawn location
|
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
@NotNull public Location getRespawnLocation()
public void setRespawnLocation(@NotNull Location respawnLocation)
respawnLocation
- new location for the respawnpublic boolean isBedSpawn()
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.