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 Details

    • REPORT_CANNOT_DELETE_CONFIG

      public static final ReportType REPORT_CANNOT_DELETE_CONFIG
    • REPORT_PLUGIN_LOAD_ERROR

      public static final ReportType REPORT_PLUGIN_LOAD_ERROR
    • REPORT_CANNOT_LOAD_CONFIG

      public static final ReportType REPORT_CANNOT_LOAD_CONFIG
    • REPORT_PLUGIN_ENABLE_ERROR

      public static final ReportType REPORT_PLUGIN_ENABLE_ERROR
    • REPORT_METRICS_IO_ERROR

      public static final ReportType REPORT_METRICS_IO_ERROR
    • REPORT_METRICS_GENERIC_ERROR

      public static final ReportType REPORT_METRICS_GENERIC_ERROR
    • REPORT_CANNOT_PARSE_MINECRAFT_VERSION

      public static final ReportType REPORT_CANNOT_PARSE_MINECRAFT_VERSION
    • REPORT_CANNOT_REGISTER_COMMAND

      public static final ReportType REPORT_CANNOT_REGISTER_COMMAND
    • REPORT_CANNOT_CREATE_TIMEOUT_TASK

      public static final ReportType REPORT_CANNOT_CREATE_TIMEOUT_TASK
    • REPORT_CANNOT_UPDATE_PLUGIN

      public static final ReportType REPORT_CANNOT_UPDATE_PLUGIN
  • Constructor Details

    • ProtocolLib

      public ProtocolLib()
  • Method Details

    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class org.bukkit.plugin.java.JavaPlugin
    • reloadConfig

      public void reloadConfig()
      Specified by:
      reloadConfig in interface org.bukkit.plugin.Plugin
      Overrides:
      reloadConfig in class org.bukkit.plugin.java.JavaPlugin
    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • getStatistics

      public Statistics 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

      public ProtocolConfig getProtocolConfig()
    • getScheduler

      public ProtocolScheduler getScheduler()