public class Plugin
extends java.lang.Object
| Constructor and Description |
|---|
Plugin() |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getDataFolder()
Gets the data folder where this plugin may store arbitrary data.
|
java.util.concurrent.ExecutorService |
getExecutorService()
Deprecated.
|
java.io.InputStream |
getResourceAsStream(java.lang.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 org.slf4j.Logger getSLF4JLogger()
public void onLoad()
ConfigurationAdapter's and other predefined behavior.public void onEnable()
public void onDisable()
public final java.io.File getDataFolder()
ProxyServer.getPluginsFolder().public final java.io.InputStream getResourceAsStream(java.lang.String name)
name - the full path name of this resource@Deprecated public java.util.concurrent.ExecutorService getExecutorService()
Copyright © 2015-2018 WaterfallMC. All Rights Reserved.