Package net.md_5.bungee.api.plugin
Class Plugin
- java.lang.Object
- 
- net.md_5.bungee.api.plugin.Plugin
 
- 
 public class Plugin extends Object Represents any Plugin that may be loaded at runtime to enhance existing functionality.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description Plugin()protectedPlugin(ProxyServer proxy, PluginDescription description)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FilegetDataFolder()Gets the data folder where this plugin may store arbitrary data.PluginDescriptiongetDescription()ExecutorServicegetExecutorService()Deprecated.FilegetFile()LoggergetLogger()ProxyServergetProxy()InputStreamgetResourceAsStream(String name)Get a resource from within this plugins jar or container.org.slf4j.LoggergetSLF4JLogger()voidonDisable()Called when this plugin is disabled.voidonEnable()Called when this plugin is enabled.voidonLoad()Called when the plugin has just been loaded.
 
- 
- 
- 
Constructor Detail- 
Pluginpublic Plugin() 
 - 
Pluginprotected Plugin(ProxyServer proxy, PluginDescription description) 
 
- 
 - 
Method Detail- 
getSLF4JLoggerpublic org.slf4j.Logger getSLF4JLogger() 
 - 
onLoadpublic void onLoad() Called when the plugin has just been loaded. Most of the proxy will not be initialized, so only use it for registeringConfigurationAdapter's and other predefined behavior.
 - 
onEnablepublic void onEnable() Called when this plugin is enabled.
 - 
onDisablepublic void onDisable() Called when this plugin is disabled.
 - 
getDataFolderpublic final File getDataFolder() Gets the data folder where this plugin may store arbitrary data. It will be a child ofProxyServer.getPluginsFolder().- Returns:
- the data folder of this plugin
 
 - 
getResourceAsStreampublic final InputStream getResourceAsStream(String name) Get a resource from within this plugins jar or container. Care must be taken to close the returned stream.- Parameters:
- name- the full path name of this resource
- Returns:
- the stream for getting this resource, or null if it does not exist
 
 - 
getExecutorService@Deprecated public ExecutorService getExecutorService() Deprecated.
 - 
getDescriptionpublic PluginDescription getDescription() 
 - 
getProxypublic ProxyServer getProxy() 
 - 
getFilepublic File getFile() 
 - 
getLoggerpublic Logger getLogger() 
 
- 
 
-