Package ch.njol.skript
Class SkriptPlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
ch.njol.skript.SkriptPlugin
- All Implemented Interfaces:
LifecycleEventOwner
,CommandExecutor
,TabCompleter
,TabExecutor
,Listener
,Plugin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeOnDisable
(Closeable closeable) Registers a Closeable that should be closed when this plugin is disabled.static SkriptPlugin
void
void
onEnable()
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
SkriptPlugin
public SkriptPlugin()
-
-
Method Details
-
getInstance
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfacePlugin
- Overrides:
onEnable
in classJavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfacePlugin
- Overrides:
onDisable
in classJavaPlugin
-
closeOnDisable
Registers a Closeable that should be closed when this plugin is disabled.All registered Closeables will be closed after all scripts have been stopped.
- Parameters:
closeable
- Closeable to register
-
getAddonInstance
- Returns:
- A
SkriptAddon
representing Skript.
-