Class ScenarioToggleEvent

java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.ScenarioToggleEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ScenarioToggleEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Called in EditScenariosMenu Is called when a scenario is toggled on/off
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Get the handlers list.
    org.bukkit.event.HandlerList
    Get the handlers list.
    org.bukkit.entity.Player
    Get the player who toggled the scenario.
    Get the scenario data that was triggered
    boolean
    Check if the event has been cancelled or not.
    boolean
    Is the scenario getting enabled?
    void
    setCancelled(boolean b)
    Change if the event is cancelled or not.

    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
  • Constructor Details

    • ScenarioToggleEvent

      public ScenarioToggleEvent()
  • Method Details

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Get the handlers list.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      HandlerList
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Get the handlers list.
      Returns:
      HandlerList
    • isCancelled

      public boolean isCancelled()
      Check if the event has been cancelled or not.
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      Boolean
    • setCancelled

      public void setCancelled(boolean b)
      Change if the event is cancelled or not.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      b - Should the event be cancelled?
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player who toggled the scenario.
      Returns:
      Player that toggled the scenario.
    • getScenario

      public ScenarioData getScenario()
      Get the scenario data that was triggered
      Returns:
      ScenarioData of the scenario.
    • isToEnable

      public boolean isToEnable()
      Is the scenario getting enabled?
      Returns:
      Boolean