Package com.comphenix.protocol
Class ProtocolLibrary
java.lang.Object
com.comphenix.protocol.ProtocolLibrary
The main entry point for ProtocolLib.
- Author:
- dmulloy2
-
Field Summary
FieldsModifier and TypeFieldDescriptionPlugins that are currently incompatible with ProtocolLib.static StringThe maximum version ProtocolLib has been tested with.static StringThe date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.17.1) was released.static StringThe minimum version ProtocolLib has been tested with. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDisables the ProtocolLib update checker.static ProtocolConfigGets ProtocolLib's configurationstatic ErrorReporterRetrieve the current error reporter.static org.bukkit.plugin.PluginGets the ProtocolLib plugin instance.static ProtocolManagerRetrieves the packet protocol manager.protected static voidinit(org.bukkit.plugin.Plugin plugin, ProtocolConfig config, ProtocolManager manager, ErrorReporter reporter)static booleanWhether or not updates are currently disabled.
-
Field Details
-
MINIMUM_MINECRAFT_VERSION
The minimum version ProtocolLib has been tested with.- See Also:
- Constant Field Values
-
MAXIMUM_MINECRAFT_VERSION
The maximum version ProtocolLib has been tested with.- See Also:
- Constant Field Values
-
MINECRAFT_LAST_RELEASE_DATE
The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.17.1) was released.- See Also:
- Constant Field Values
-
INCOMPATIBLE
Plugins that are currently incompatible with ProtocolLib.
-
-
Constructor Details
-
ProtocolLibrary
public ProtocolLibrary()
-
-
Method Details
-
init
protected static void init(org.bukkit.plugin.Plugin plugin, ProtocolConfig config, ProtocolManager manager, ErrorReporter reporter) -
getPlugin
public static org.bukkit.plugin.Plugin getPlugin()Gets the ProtocolLib plugin instance.- Returns:
- The plugin instance
-
getConfig
Gets ProtocolLib's configuration- Returns:
- The config
-
getProtocolManager
Retrieves the packet protocol manager.- Returns:
- Packet protocol manager
-
getErrorReporter
Retrieve the current error reporter.- Returns:
- Current error reporter.
-
disableUpdates
public static void disableUpdates()Disables the ProtocolLib update checker. -
updatesDisabled
public static boolean updatesDisabled()Whether or not updates are currently disabled.- Returns:
- True if it is, false if not
-