Class SpectatorJoinArenaEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.SpectatorJoinArenaEvent
- All Implemented Interfaces:
ArenaEvent
,Cancellable
Gets called when a player tries to enter an arena as a spectator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Returns the arena to which the player wants to join.static HandlerList
Returns the reason why he got into a spectator.Returns the spectator who's trying to join.boolean
void
setCancelled
(boolean bool) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SpectatorJoinArenaEvent
-
-
Method Details
-
getArena
Returns the arena to which the player wants to join.- Specified by:
getArena
in interfaceArenaEvent
- Returns:
- The arena in which the player wants to enter
-
getSpectator
Returns the spectator who's trying to join.- Returns:
- The involved spectator
-
getReason
Returns the reason why he got into a spectator.- Returns:
- The reason
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean bool) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-