Package me.kzheart.klib
Class KPlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.kzheart.klib.KPlugin
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public abstract class KPlugin
extends org.bukkit.plugin.java.JavaPlugin
Java extension boundary: the non-final static instance() method remains hideable
by existing Java plugin subclasses. All lifecycle state lives in the Kotlin core.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final me.kzheart.klib.command.api.Commandscommands()protected final me.kzheart.klib.component.Componentsprotected final me.kzheart.klib.config.api.Configsconfigs()final me.kzheart.klib.component.KContextcontext()protected final me.kzheart.klib.event.Eventsevents()static KPlugininstance()final me.kzheart.klib.KLoggerlogger()final voidfinal voidonEnable()final booleanrebuild()final Scopeprotected voidsetup()protected voidprotected final me.kzheart.klib.scheduler.Taskstasks()Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
KPlugin
public KPlugin()
-
-
Method Details
-
setup
-
setup
protected void setup() -
context
public final me.kzheart.klib.component.KContext context() -
commands
protected final me.kzheart.klib.command.api.Commands commands() -
configs
protected final me.kzheart.klib.config.api.Configs configs() -
events
protected final me.kzheart.klib.event.Events events() -
tasks
protected final me.kzheart.klib.scheduler.Tasks tasks() -
components
protected final me.kzheart.klib.component.Components components() -
onEnable
public final void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public final void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
rootScope
-
rebuild
public final boolean rebuild() -
logger
public final me.kzheart.klib.KLogger logger() -
instance
-