Class LazyPlugin

    • Constructor Detail

      • LazyPlugin

        public LazyPlugin()
        Initialize a Plugin instance. Never instance it! It will be instanced when bot bootstraps automatically.
        Throws:
        PluginLoaderException - if the classloader of the plugin is not PluginClassLoader and the plugin is not the MainPlugin.
        PluginDuplicateException - if the plugin is already loaded
        IllegalStateException - if the plugin is newed in runtime
    • Method Detail

      • enable

        public void enable()
        Description copied from class: Plugin
        Used to initialize the plugin
        Specified by:
        enable in class Plugin
      • disable

        public void disable()
        Description copied from class: Plugin
        Used to save some data of the plugin
        Specified by:
        disable in class Plugin