Package top.focess.qq.api.plugin
Class LazyPlugin
- java.lang.Object
-
- top.focess.qq.api.plugin.Plugin
-
- top.focess.qq.api.plugin.LazyPlugin
-
public abstract class LazyPlugin extends Plugin
This is lazy version of the plugin. Do not need to implementPlugin.enable()andPlugin.disable()- See Also:
Plugin
-
-
Constructor Summary
Constructors Constructor Description LazyPlugin()Provide a constructor to helpPluginTypedesign.LazyPlugin(String name, String author, Version version)Initialize a Plugin instance by its name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable()Used to save some data of the pluginvoidenable()Used to initialize the plugin-
Methods inherited from class top.focess.qq.api.plugin.Plugin
equals, getAuthor, getConfig, getConfigFile, getDefaultConfig, getDefaultFolder, getLangConfig, getName, getPlugin, getPlugin, getPluginDescription, getVersion, hashCode, isEnabled, loadResource, onDisable, onEnable, registerBuffer, registerCommand, registerListener, thisPlugin, unload
-
-
-
-
Constructor Detail
-
LazyPlugin
public LazyPlugin(String name, String author, Version version)
Initialize a Plugin instance by its name. Never instance it! It will be instanced when bot bootstraps automatically.- Parameters:
name- the plugin nameauthor- the plugin authorversion- the plugin version- Throws:
PluginLoaderException- if the classloader of the plugin is notPluginClassLoader
-
LazyPlugin
public LazyPlugin()
Provide a constructor to helpPluginTypedesign. Never instance it! It will be instanced when bot bootstraps automatically.
-
-