Package com.comphenix.protocol
Class ProtocolLib
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.comphenix.protocol.ProtocolLib
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public class ProtocolLib
extends org.bukkit.plugin.java.JavaPlugin
The main entry point for ProtocolLib.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReportTypestatic final ReportTypestatic final ReportTypestatic final ReportTypestatic final ReportTypestatic final ReportTypestatic final ReportTypestatic final ReportTypestatic final ReportTypestatic final ReportType -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onTabComplete, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Field Details
-
REPORT_CANNOT_DELETE_CONFIG
-
REPORT_PLUGIN_LOAD_ERROR
-
REPORT_CANNOT_LOAD_CONFIG
-
REPORT_PLUGIN_ENABLE_ERROR
-
REPORT_METRICS_IO_ERROR
-
REPORT_METRICS_GENERIC_ERROR
-
REPORT_CANNOT_PARSE_MINECRAFT_VERSION
-
REPORT_CANNOT_REGISTER_COMMAND
-
REPORT_CANNOT_CREATE_TIMEOUT_TASK
-
REPORT_CANNOT_UPDATE_PLUGIN
-
-
Constructor Details
-
ProtocolLib
public ProtocolLib()
-
-
Method Details
-
onLoad
public void onLoad()- Specified by:
onLoadin interfaceorg.bukkit.plugin.Plugin- Overrides:
onLoadin classorg.bukkit.plugin.java.JavaPlugin
-
reloadConfig
public void reloadConfig()- Specified by:
reloadConfigin interfaceorg.bukkit.plugin.Plugin- Overrides:
reloadConfigin classorg.bukkit.plugin.java.JavaPlugin
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
getStatistics
Retrieve the metrics instance used to measure users of this library.Note that this method may return NULL when the server is reloading or shutting down. It is also NULL if metrics has been disabled.
- Returns:
- Metrics instance container.
-
getProtocolConfig
-
getScheduler
-