Class ArenaVotingPoolUpdateEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaVotingPoolUpdateEvent
- All Implemented Interfaces:
ArenaEvent
Gets called when the voting pool of an arena gets updated.
Note that this event is not called when all players have left an arena, whereby the voting pool gets cleared.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArena()
Returns theArena
that is involved in this event.static HandlerList
getPool()
Get the new voting pool of the arena.void
Set the new voting pool of the arena.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ArenaVotingPoolUpdateEvent
-
-
Method Details
-
getArena
Description copied from interface:ArenaEvent
Returns theArena
that is involved in this event.- Specified by:
getArena
in interfaceArenaEvent
- Returns:
- The arena that is involved
-
getPool
Get the new voting pool of the arena.It is safe to modify the returned collection.
- Returns:
- The new pool of the arena.
-
setPool
Set the new voting pool of the arena.- Parameters:
pool
- The new pool of the arena.
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-