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 SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
SpectatorJoinArenaEvent
 
- 
- 
Method Details- 
getArenaReturns the arena to which the player wants to join.- Specified by:
- getArenain interface- ArenaEvent
- Returns:
- The arena in which the player wants to enter
 
- 
getSpectatorReturns the spectator who's trying to join.- Returns:
- The involved spectator
 
- 
getReasonReturns the reason why he got into a spectator.- Returns:
- The reason
 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- Cancellable
 
- 
setCancelledpublic void setCancelled(boolean bool) - Specified by:
- setCancelledin interface- Cancellable
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-