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 Link icon

    • ArenaPreparingStartEvent Link icon

      public ArenaPreparingStartEvent(Arena arena)
  • Method Details Link icon

    • getCountdown Link icon

      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 Link icon

      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 Link icon

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

      public static HandlerList getHandlerList()