Class MVRespawnEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.onarandombox.MultiverseCore.event.MVRespawnEvent
-
public class MVRespawnEvent extends org.bukkit.event.EventCalled when a player is respawning.
-
-
Constructor Summary
Constructors Constructor Description MVRespawnEvent(org.bukkit.Location spawningAt, org.bukkit.entity.Player p, java.lang.String respawnMethod)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.bukkit.event.HandlerListgetHandlerList()Gets the handler list.org.bukkit.event.HandlerListgetHandlers()org.bukkit.entity.PlayergetPlayer()Gets thePlayerthat's respawning.org.bukkit.LocationgetPlayersRespawnLocation()Gets the player's respawn-Location.java.lang.StringgetRespawnMethod()Gets the respawn-method.voidsetRespawnLocation(org.bukkit.Location l)Sets the player's respawn-Location.
-
-
-
Method Detail
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
Gets the handler list. This is required by the event system.- Returns:
- A list of HANDLERS.
-
getPlayer
public org.bukkit.entity.Player getPlayer()
Gets thePlayerthat's respawning.- Returns:
- The
Playerthat's respawning.
-
getRespawnMethod
public java.lang.String getRespawnMethod()
Gets the respawn-method.- Returns:
- The respawn-method.
-
getPlayersRespawnLocation
public org.bukkit.Location getPlayersRespawnLocation()
Gets the player's respawn-Location.- Returns:
- The player's respawn-
Location.
-
setRespawnLocation
public void setRespawnLocation(org.bukkit.Location l)
Sets the player's respawn-Location.- Parameters:
l- The new respawn-Location.
-
-