Package me.yleoft.zAPI.utils
Class ProtocolUtils
java.lang.Object
me.yleoft.zAPI.utils.ProtocolUtils
- Direct Known Subclasses:
ActionbarUtils
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Retrieves the current protocol version of the server.
-
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.
-