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.HandlerList
Gets the handler list.@NotNull org.bukkit.event.HandlerList
org.bukkit.Location
Gets the player's respawn-Location
.boolean
void
setCancelled
(boolean cancel) void
setRespawnLocation
(org.bukkit.Location location) Sets the player's respawn-Location
.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods 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:
getHandlers
in 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:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-