Class ArenaStatusChangeEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaStatusChangeEvent
- All Implemented Interfaces:
ArenaEvent
Gets called when the status of an arena is about to change
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionArenaStatusChangeEvent
(Arena arena, ArenaStatus before, ArenaStatus newStatus) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Returns the new status status that should be set.Returns the current status.void
setNewStatus
(ArenaStatus status) Set the new status that should be set.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
-
ArenaStatusChangeEvent
-
-
Method Details
-
getOldStatus
Returns the current status.- Returns:
- The current status of the arena
-
getNewStatus
Returns the new status status that should be set.- Returns:
- The new status
-
setNewStatus
Set the new status that should be set.- Parameters:
status
- The new status
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-