Class PlayerLeaveArenaEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerLeaveArenaEvent
public class PlayerLeaveArenaEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerLeaveArenaEvent
(org.bukkit.entity.Player p, IArena arena) Deprecated.PlayerLeaveArenaEvent
(org.bukkit.entity.Player p, IArena arena, @Nullable org.bukkit.entity.Player lastDamager) Called when a player leaves the arena. -
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Get the arenastatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
@Nullable org.bukkit.entity.Player
Get the player's last damager, might be nullorg.bukkit.entity.Player
boolean
Check if the player was spectating.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerLeaveArenaEvent
public PlayerLeaveArenaEvent(org.bukkit.entity.Player p, IArena arena, @Nullable @Nullable org.bukkit.entity.Player lastDamager) Called when a player leaves the arena. This is called if the arena has ended as well. -
PlayerLeaveArenaEvent
Deprecated.
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer() -
getArena
Get the arena -
isSpectator
public boolean isSpectator()Check if the player was spectating. -
getLastDamager
@Nullable public @Nullable org.bukkit.entity.Player getLastDamager()Get the player's last damager, might be null -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-