public abstract class LazyPlugin extends Plugin
Plugin.enable() and Plugin.disable()Plugin| 构造器和说明 |
|---|
LazyPlugin()
Provide a constructor to help
PluginType design. |
LazyPlugin(String name,
String author,
Version version)
Initialize a Plugin instance by its name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
disable()
Used to save some data of the plugin
|
void |
enable()
Used to initialize the plugin
|
equals, getAuthor, getConfig, getConfigFile, getDefaultConfig, getDefaultFolder, getLangConfig, getName, getPlugin, getPlugin, getPluginDescription, getVersion, hashCode, loadResource, registerBuffer, registerCommand, registerListener, thisPluginpublic LazyPlugin(String name, String author, Version version)
name - the plugin nameauthor - the plugin authorversion - the plugin versionPluginLoaderException - if the classloader of the plugin is not PluginClassLoaderpublic LazyPlugin()
PluginType design.
Never instance it! It will be instanced when bot bootstraps automatically.Copyright © 2022. All rights reserved.