Class LazyPlugin

    • Constructor Detail

      • LazyPlugin

        public LazyPlugin​(String name,
                          String author,
                          top.focess.util.version.Version version)
        Initialize a Plugin instance by its name. Never instance it! It will be instanced when bot bootstraps automatically.
        Parameters:
        name - the plugin name
        author - the plugin author
        version - the plugin version
        Throws:
        PluginLoaderException - if the classloader of the plugin is not PluginClassLoader
        PluginDuplicateException - if the plugin is already loaded
        IllegalStateException - if the plugin is newed in runtime
      • LazyPlugin

        public LazyPlugin()
        Provide a constructor to help PluginType design. Never instance it! It will be instanced when bot bootstraps automatically.
    • 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