Interface VersionProvider

  • All Superinterfaces:
    Provider

    public interface VersionProvider
    extends Provider
    • Method Detail

      • getClosestServerProtocol

        int getClosestServerProtocol​(UserConnection connection)
                              throws java.lang.Exception
        Returns the closest server protocol version to the user's protocol version. On non-proxy servers, this returns the actual server version.
        Parameters:
        connection - connection
        Returns:
        closest server protocol version to the user's protocol version
        Throws:
        java.lang.Exception