Class ScriptUnloadEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
dev.magicmq.pyspigot.bungee.event.ScriptEvent
dev.magicmq.pyspigot.bungee.event.ScriptUnloadEvent

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

    Constructors
    Constructor
    Description
    ScriptUnloadEvent(dev.magicmq.pyspigot.manager.script.Script script, boolean error)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get if this unload event was due to a script error.

    Methods inherited from class dev.magicmq.pyspigot.bungee.event.ScriptEvent

    getScript

    Methods inherited from class net.md_5.bungee.api.plugin.Event

    postCall

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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