Class ArenaOutOfTimeEvent

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

public class ArenaOutOfTimeEvent extends Event implements ArenaEvent
Gets called when the ingame timer is about to reach zero
  • Constructor Details

    • ArenaOutOfTimeEvent

      public ArenaOutOfTimeEvent(Arena arena)
  • Method Details

    • setNewTime

      public void setNewTime(int time)
      Let the game continue running by changing the time.

      Changing it to 0 or less will stop the arena.

      Parameters:
      time - The new time
    • getNewTime

      public int getNewTime()
      Arena time will be set to this time after this event.

      This can prevent the game from being stopped.

      Returns:
      The new time. 0 by default
    • getHandlers

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

      public static HandlerList getHandlerList()