Class ScenarioFailureEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.scenario.ScenarioFailureEvent
A scenario misbehaved and Zentrix contained the damage.
Failures are counted per match. Once a scenario exceeds the configured limit it is deactivated
for that match alone, with isIsolated() set, and everything else — the match, the other
scenarios, every other arena — carries on untouched.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCause()intHow often this scenario has failed in this match so far.static @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull StringThe match the failure happened in, empty for failures outside any match.@NotNull String@NotNull StringgetStage()Which part of the scenario failed, for exampleonActivateor a hook ID.booleanWhether this failure caused the scenario to be shut down for the match.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ScenarioFailureEvent
-
-
Method Details
-
getScenarioId
-
getRuntimeId
The match the failure happened in, empty for failures outside any match. -
getStage
Which part of the scenario failed, for exampleonActivateor a hook ID. -
getMessage
-
getCause
-
getFailureCount
public int getFailureCount()How often this scenario has failed in this match so far. -
isIsolated
public boolean isIsolated()Whether this failure caused the scenario to be shut down for the match. -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-