Class PlayerJoinArenaEvent
java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.player.PlayerJoinArenaEvent
public class PlayerJoinArenaEvent
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
ConstructorDescriptionPlayerJoinArenaEvent
(IArena arena, org.bukkit.entity.Player p, boolean spectator) This event is called when a player joins the arena as a player or spectator. -
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Get arenastatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
Get playerboolean
Check if event was cancelledboolean
Check if the player has joined as spectatorvoid
setCancelled
(boolean cancelled) Cancel eventMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerJoinArenaEvent
This event is called when a player joins the arena as a player or spectator. The event is not triggered for players who died and become spectators. Listen the kill event for this.
-
-
Method Details
-
getArena
Get arena -
getPlayer
public org.bukkit.entity.Player getPlayer()Get player -
isSpectator
public boolean isSpectator()Check if the player has joined as spectator -
isCancelled
public boolean isCancelled()Check if event was cancelled -
setCancelled
public void setCancelled(boolean cancelled) Cancel event -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-