Class ScenarioDeactivateEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
dev.itsharshxd.zentrix.api.events.scenario.ScenarioDeactivateEvent
One scenario stopped running in a match.
Fired after the scenario's own teardown and after everything it registered through its context has been released, so the match is already back to Zentrix's default behaviour.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionScenarioDeactivateEvent(@NotNull ZentrixGame game, @NotNull ScenarioDescriptor descriptor, ScenarioInstance.DeactivationReason reason) -
Method Summary
Modifier and TypeMethodDescription@NotNull ScenarioDescriptorstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull StringMethods inherited from class dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
getArenaName, getGame, getGameId, getGameState, getGameTypeName, getPlayerCount, getRuntimeId, getSourceArenaNameMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ScenarioDeactivateEvent
public ScenarioDeactivateEvent(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull ScenarioDescriptor descriptor, @NotNull ScenarioInstance.DeactivationReason reason)
-
-
Method Details
-
getDescriptor
-
getScenarioId
-
getReason
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixGameEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixGameEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-