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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseOnDisable(Closeable closeable) Registers a Closeable that should be closed when this plugin is disabled.static SkriptPluginvoidvoidonEnable()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, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
onEnablein interfacePlugin- Overrides:
onEnablein classJavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfacePlugin- Overrides:
onDisablein 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
SkriptAddonrepresenting Skript.
-