Class SpectatorQuitArenaEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.SpectatorQuitArenaEvent
- All Implemented Interfaces:
ArenaEvent
Gets called when a spectator leaves the arena
-
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 that he left.static HandlerList
Returns the reason why he left the arena.Returns the spectator.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SpectatorQuitArenaEvent
-
-
Method Details
-
getSpectator
Returns the spectator.- Returns:
- The spectator that left the arena
-
getReason
Returns the reason why he left the arena.- Returns:
- The reason
-
getArena
Returns the arena that he left.- Specified by:
getArena
in interfaceArenaEvent
- Returns:
- The arena involved in this
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-