Class OnyxPlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.zombienw.onyxlib.OnyxPlugin
- All Implemented Interfaces:
LifecycleEventOwner, net.kyori.adventure.key.Namespaced, CommandExecutor, TabCompleter, TabExecutor, Listener, Plugin
The core JavaPlugin instance for OnyxLib.
Manages the lifecycle of the framework and triggers global state changes.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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, registerCommand, registerCommand, registerCommand, registerCommand, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class PluginBase
equals, getName, hashCode, namespaceMethods inherited from interface Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
OnyxPlugin
public OnyxPlugin()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfacePlugin- Overrides:
onEnablein classJavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfacePlugin- Overrides:
onDisablein classJavaPlugin
-
onServerLoad
-