Class ScriptUnloadEvent


public class ScriptUnloadEvent extends ScriptEvent
Called when a script is unloaded.
  • Constructor Details

    • ScriptUnloadEvent

      public ScriptUnloadEvent(dev.magicmq.pyspigot.manager.script.Script script, boolean error)
      Parameters:
      script - The script that was unloaded
      error - Whether the script was unloaded due to an error
  • Method Details

    • isError

      public boolean isError()
      Get if this unload event was due to a script error.
      Returns:
      True if the script was unloaded due to an error/exception, false if otherwise
    • getHandlers

      public HandlerList getHandlers()
      Overrides:
      getHandlers in class ScriptEvent
    • getHandlerList

      public static HandlerList getHandlerList()