public class ProtocolLibrary
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 |
Constructor and Description |
---|
ProtocolLibrary() |
Modifier and Type | Method and Description |
---|---|
static ErrorReporter |
getErrorReporter()
Retrieve the current error reporter.
|
static ProtocolManager |
getProtocolManager()
Retrieves the packet protocol manager.
|
Statistics |
getStatistics()
Retrieve the metrics instance used to measure users of this library.
|
void |
onDisable() |
void |
onEnable() |
void |
onLoad() |
void |
reloadConfig() |
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPluginLoader, getResource, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, onTabComplete, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
public 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 void onLoad()
onLoad
in interface org.bukkit.plugin.Plugin
onLoad
in class org.bukkit.plugin.java.JavaPlugin
public void reloadConfig()
reloadConfig
in interface org.bukkit.plugin.Plugin
reloadConfig
in class org.bukkit.plugin.java.JavaPlugin
public void onEnable()
onEnable
in interface org.bukkit.plugin.Plugin
onEnable
in class org.bukkit.plugin.java.JavaPlugin
public void onDisable()
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin
public static ErrorReporter getErrorReporter()
This is guaranteed to not be NULL in 2.5.0 and later.
public static ProtocolManager getProtocolManager()
public 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.