Class ServerPing.Version

java.lang.Object
com.velocitypowered.api.proxy.server.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 Details

    • 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
  • Method Details

    • getProtocol

      public int getProtocol()
    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object