public class Plugin extends Object
Constructor and Description |
---|
Plugin() |
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.
|
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 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 © 2012–2014 SpigotMC. All rights reserved.