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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Returns the arena to which the player wants to join.static HandlerListReturns the reason why he got into a spectator.Returns the spectator who's trying to join.booleanvoidsetCancelled(boolean bool) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods 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:
getArenain 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:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean bool) - Specified by:
setCancelledin interfaceCancellable
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-