Class ArenaVotingPoolUpdateEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaVotingPoolUpdateEvent
All Implemented Interfaces:
ArenaEvent

public class ArenaVotingPoolUpdateEvent extends Event implements 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.

  • Constructor Details

    • ArenaVotingPoolUpdateEvent

      public ArenaVotingPoolUpdateEvent(Arena arena, List<Arena> pool)
  • Method Details

    • getArena

      public Arena getArena()
      Description copied from interface: ArenaEvent
      Returns the Arena that is involved in this event.
      Specified by:
      getArena in interface ArenaEvent
      Returns:
      The arena that is involved
    • getPool

      public List<Arena> 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

      public void setPool(List<Arena> pool)
      Set the new voting pool of the arena.
      Parameters:
      pool - The new pool of the arena.
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()