public class Plugin extends Object
Modifier | Constructor and Description |
---|---|
|
Plugin() |
protected |
Plugin(ProxyServer proxy,
PluginDescription description) |
Modifier and Type | Method and Description |
---|---|
File |
getDataFolder()
Gets the data folder where this plugin may store arbitrary data.
|
ExecutorService |
getExecutorService()
Deprecated.
|
InputStream |
getResourceAsStream(String name)
Get a resource from within this plugins jar or container.
|
org.slf4j.Logger |
getSLF4JLogger() |
void |
onDisable()
Called when this plugin is disabled.
|
void |
onEnable()
Called when this plugin is enabled.
|
void |
onLoad()
Called when the plugin has just been loaded.
|
public Plugin()
protected Plugin(ProxyServer proxy, PluginDescription description)
public org.slf4j.Logger getSLF4JLogger()
public void onLoad()
ConfigurationAdapter
's and other predefined behavior.public void onEnable()
public void onDisable()
public final File getDataFolder()
ProxyServer.getPluginsFolder()
.public final InputStream getResourceAsStream(String name)
name
- the full path name of this resource@Deprecated public ExecutorService getExecutorService()
Copyright © 2021. All rights reserved.