Class ArenaPreparingStartEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaPreparingStartEvent
- All Implemented Interfaces:
ArenaEvent
Gets called when the lobby timer reaches 0, but still before the initiation of the round
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the current value of the timer/countdown of the lobby.static HandlerList
void
setCountdown
(int countdown) Set the new timer/countdown value.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
-
Constructor Details
-
ArenaPreparingStartEvent
-
-
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
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-