Class ProtocolUtils

java.lang.Object
me.yleoft.zAPI.utils.ProtocolUtils
Direct Known Subclasses:
ActionbarUtils

public abstract class ProtocolUtils extends Object
Utility class for retrieving the protocol version of the server. This class provides methods to get the current protocol version and handle legacy versions.
  • Constructor Details

    • ProtocolUtils

      public ProtocolUtils()
  • Method Details

    • getProtocolVersion

      public static int getProtocolVersion()
      Retrieves the current protocol version of the server.
      Returns:
      the protocol version or -1 if it fails to retrieve.