Class ScriptUnloadEvent
java.lang.Object
org.bukkit.event.Event
dev.magicmq.pyspigot.bukkit.event.ScriptEvent
dev.magicmq.pyspigot.bukkit.event.ScriptUnloadEvent
Called when a script is unloaded.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionScriptUnloadEvent(dev.magicmq.pyspigot.manager.script.Script script, boolean error) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListbooleanisError()Get if this unload event was due to a script error.Methods inherited from class dev.magicmq.pyspigot.bukkit.event.ScriptEvent
getScriptMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ScriptUnloadEvent
public ScriptUnloadEvent(dev.magicmq.pyspigot.manager.script.Script script, boolean error) - Parameters:
script- The script that was unloadederror- 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
- Overrides:
getHandlersin classScriptEvent
-
getHandlerList
-