public class ProtocolLibrary extends JavaPlugin
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.
|
com.comphenix.protocol.metrics.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
equals, getName, hashCode
public void onLoad()
onLoad
in interface Plugin
onLoad
in class JavaPlugin
public void reloadConfig()
reloadConfig
in interface Plugin
reloadConfig
in class JavaPlugin
public void onEnable()
onEnable
in interface Plugin
onEnable
in class JavaPlugin
public void onDisable()
onDisable
in interface Plugin
onDisable
in class JavaPlugin
public static ErrorReporter getErrorReporter()
public static ProtocolManager getProtocolManager()
public com.comphenix.protocol.metrics.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.