Class ArenaPreparingStartEvent

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

public class ArenaPreparingStartEvent extends Event implements ArenaEvent
Gets called when the lobby timer reaches 0, but still before the initiation of the round
  • Constructor Details

    • ArenaPreparingStartEvent

      public ArenaPreparingStartEvent(Arena arena)
  • Method Details

    • getCountdown

      public int getCountdown()
      Returns the current value of the timer/countdown of the lobby.

      Is 0 unless an other plugin has changed it by setCountdown(int)

      Returns:
      The time remaining until the round starts
    • setCountdown

      public void setCountdown(int countdown)
      Set the new timer/countdown value.

      Changing this anything larger 0 causes the round to not get started and resets the lobby timer back to the given value.

      Parameters:
      countdown - The new value for the lobby timer
    • getHandlers

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

      public static HandlerList getHandlerList()