Class ArenaOutOfTimeEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaOutOfTimeEvent
- All Implemented Interfaces:
ArenaEvent
Gets called when the ingame timer is about to reach zero
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
int
Arena time will be set to this time after this event.void
setNewTime
(int time) Let the game continue running by changing the time.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
-
ArenaOutOfTimeEvent
-
-
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
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-