Class ScriptEvent
java.lang.Object
org.bukkit.event.Event
dev.magicmq.pyspigot.bukkit.event.ScriptEvent
- Direct Known Subclasses:
CustomEvent,ScriptExceptionEvent,ScriptLoadEvent,ScriptUnloadEvent
Script event superclass. All script events inherit from this class.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionScriptEvent(dev.magicmq.pyspigot.manager.script.Script script, boolean async) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListdev.magicmq.pyspigot.manager.script.ScriptGet the script associated with this event.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ScriptEvent
public ScriptEvent(dev.magicmq.pyspigot.manager.script.Script script, boolean async) - Parameters:
script- The script associated with this eventasync- 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
- Specified by:
getHandlersin classEvent
-
getHandlerList
-