Class ProtocolLibrary

java.lang.Object
com.comphenix.protocol.ProtocolLibrary

public class ProtocolLibrary extends Object
The main entry point for ProtocolLib.
  • Field Details

    • MINIMUM_MINECRAFT_VERSION

      public static final String MINIMUM_MINECRAFT_VERSION
      The minimum version ProtocolLib has been tested with.
      See Also:
    • MAXIMUM_MINECRAFT_VERSION

      public static final String MAXIMUM_MINECRAFT_VERSION
      The maximum version ProtocolLib has been tested with.
      See Also:
    • MINECRAFT_LAST_RELEASE_DATE

      public static final String MINECRAFT_LAST_RELEASE_DATE
      The date (with ISO 8601 or YYYY-MM-DD) when the most recent version (1.21.8) was released.
      See Also:
  • Constructor Details

    • ProtocolLibrary

      public ProtocolLibrary()
  • Method Details

    • init

      protected static void init(org.bukkit.plugin.Plugin plugin, ProtocolConfig config, ProtocolManager manager, ProtocolScheduler scheduler, ErrorReporter reporter)
    • getPlugin

      public static org.bukkit.plugin.Plugin getPlugin()
      Gets the ProtocolLib plugin instance.
      Returns:
      The plugin instance
    • getConfig

      public static ProtocolConfig getConfig()
      Gets ProtocolLib's configuration
      Returns:
      The config
    • getProtocolManager

      public static ProtocolManager getProtocolManager()
      Retrieves the packet protocol manager.
      Returns:
      Packet protocol manager
    • getScheduler

      public static ProtocolScheduler getScheduler()
    • getErrorReporter

      public static ErrorReporter 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 updates are currently disabled.
      Returns:
      True if it is, false if not