public class ProtocolLib
extends org.bukkit.plugin.java.JavaPlugin
| Modifier and Type | Field and Description |
|---|---|
static ReportType |
REPORT_CANNOT_CREATE_TIMEOUT_TASK |
static ReportType |
REPORT_CANNOT_DELETE_CONFIG |
static ReportType |
REPORT_CANNOT_DETECT_CONFLICTING_PLUGINS |
static ReportType |
REPORT_CANNOT_LOAD_CONFIG |
static ReportType |
REPORT_CANNOT_PARSE_INJECTION_METHOD |
static ReportType |
REPORT_CANNOT_PARSE_MINECRAFT_VERSION |
static ReportType |
REPORT_CANNOT_REGISTER_COMMAND |
static ReportType |
REPORT_CANNOT_UPDATE_PLUGIN |
static ReportType |
REPORT_METRICS_GENERIC_ERROR |
static ReportType |
REPORT_METRICS_IO_ERROR |
static ReportType |
REPORT_PLUGIN_ENABLE_ERROR |
static ReportType |
REPORT_PLUGIN_LOAD_ERROR |
static boolean |
UPDATES_DISABLED |
| Constructor and Description |
|---|
ProtocolLib() |
| Modifier and Type | Method and Description |
|---|---|
Statistics |
getStatistics()
Retrieve the metrics instance used to measure users of this library.
|
void |
onDisable() |
void |
onEnable() |
void |
onLoad() |
void |
reloadConfig() |
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onTabComplete, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringpublic static final ReportType REPORT_CANNOT_LOAD_CONFIG
public static final ReportType REPORT_CANNOT_DELETE_CONFIG
public static final ReportType REPORT_CANNOT_PARSE_INJECTION_METHOD
public static final ReportType REPORT_PLUGIN_LOAD_ERROR
public static final ReportType REPORT_PLUGIN_ENABLE_ERROR
public static final ReportType REPORT_METRICS_IO_ERROR
public static final ReportType REPORT_METRICS_GENERIC_ERROR
public static final ReportType REPORT_CANNOT_PARSE_MINECRAFT_VERSION
public static final ReportType REPORT_CANNOT_DETECT_CONFLICTING_PLUGINS
public static final ReportType REPORT_CANNOT_REGISTER_COMMAND
public static final ReportType REPORT_CANNOT_CREATE_TIMEOUT_TASK
public static final ReportType REPORT_CANNOT_UPDATE_PLUGIN
public static boolean UPDATES_DISABLED
public void onLoad()
onLoad in interface org.bukkit.plugin.PluginonLoad in class org.bukkit.plugin.java.JavaPluginpublic void reloadConfig()
reloadConfig in interface org.bukkit.plugin.PluginreloadConfig in class org.bukkit.plugin.java.JavaPluginpublic void onEnable()
onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginpublic void onDisable()
onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPluginpublic Statistics getStatistics()
Note that this method may return NULL when the server is reloading or shutting down. It is also NULL if metrics has been disabled.
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.