Class ScriptEvent

java.lang.Object
org.bukkit.event.Event
dev.magicmq.pyspigot.bukkit.event.ScriptEvent
Direct Known Subclasses:
CustomEvent, ScriptExceptionEvent, ScriptLoadEvent, ScriptUnloadEvent

public class ScriptEvent extends Event
Script event superclass. All script events inherit from this class.
  • Constructor Details

    • ScriptEvent

      public ScriptEvent(dev.magicmq.pyspigot.manager.script.Script script, boolean async)
      Parameters:
      script - The script associated with this event
      async - Whether the event is asynchronous
  • Method Details

    • getScript

      public dev.magicmq.pyspigot.manager.script.Script getScript()
      Get the script associated with this event.
      Returns:
      The script associated with this event
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()