Class MVRespawnEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.mvplugins.multiverse.core.event.MVRespawnEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class MVRespawnEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.Cancellable
Called when a player is respawning.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionMVRespawnEvent(org.bukkit.Location spawningAt, org.bukkit.entity.Player player) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListGets the handler list.@NotNull org.bukkit.event.HandlerListorg.bukkit.LocationGets the player's respawn-Location.booleanvoidsetCancelled(boolean cancel) voidsetRespawnLocation(org.bukkit.Location location) Sets the player's respawn-Location.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
MVRespawnEvent
public MVRespawnEvent(org.bukkit.Location spawningAt, org.bukkit.entity.Player player)
-
-
Method Details
-
getHandlers
@NotNull public @NotNull 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.
-
getRespawnLocation
public org.bukkit.Location getRespawnLocation()Gets the player's respawn-Location.- Returns:
- The player's respawn-
Location.
-
setRespawnLocation
public void setRespawnLocation(org.bukkit.Location location) Sets the player's respawn-Location.- Parameters:
location- The new respawn-Location.
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-