org.bukkit.event.player
Class PlayerRespawnEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerRespawnEvent
public class PlayerRespawnEvent
- extends PlayerEvent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerRespawnEvent
public PlayerRespawnEvent(Player respawnPlayer,
Location respawnLocation,
boolean isBedSpawn)
getRespawnLocation
public Location getRespawnLocation()
- Gets the current respawn location
- Returns:
- Location current respawn location
setRespawnLocation
public void setRespawnLocation(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.
getHandlers
public HandlerList getHandlers()
- Specified by:
getHandlers
in class Event
getHandlerList
public static HandlerList getHandlerList()
Copyright © 2013. All Rights Reserved.