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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final me.kzheart.klib.command.api.Commands
     
    protected final me.kzheart.klib.component.Components
     
    protected final me.kzheart.klib.config.api.Configs
     
    final me.kzheart.klib.component.KContext
     
    protected final me.kzheart.klib.event.Events
     
    static KPlugin
     
    final me.kzheart.klib.KLogger
     
    final void
     
    final void
     
    final boolean
     
    final Scope
     
    protected void
     
    protected void
    setup(Scope root)
     
    protected final me.kzheart.klib.scheduler.Tasks
     

    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, 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
  • Constructor Details

    • KPlugin

      public KPlugin()
  • Method Details

    • setup

      protected void setup(Scope root)
    • 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:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public final void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • rootScope

      public final Scope rootScope()
    • rebuild

      public final boolean rebuild()
    • logger

      public final me.kzheart.klib.KLogger logger()
    • instance

      public static KPlugin instance()