Class ScenarioActivateEvent

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.ScenarioActivateEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class ScenarioActivateEvent extends ZentrixGameEvent implements org.bukkit.event.Cancellable
One scenario is about to start running in a match.

Cancelling keeps this one scenario out of this one match; every other scenario in the selection still activates.

Since:
1.6.0
  • Constructor Details

  • Method Details

    • getDescriptor

      @NotNull public @NotNull ScenarioDescriptor getDescriptor()
    • getScenarioId

      @NotNull public @NotNull String getScenarioId()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: ZentrixGameEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixGameEvent
      Returns:
      The handler list
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()