Class ServerPing.Version

  • Enclosing class:
    ServerPing

    public static final class ServerPing.Version
    extends Object
    Represents the version of the server sent to the client. A protocol version that does not match the client's protocol version will show up on the server list as an incompatible version, but the client will still permit the user to connect to the server anyway.
    • Constructor Detail

      • Version

        public Version​(int protocol,
                       String name)
        Creates a new instance.
        Parameters:
        protocol - the protocol version as an integer
        name - a friendly name for the protocol version