Class ServerInfo

java.lang.Object
com.velocitypowered.api.proxy.server.ServerInfo
All Implemented Interfaces:
Comparable<ServerInfo>

public final class ServerInfo extends Object implements Comparable<ServerInfo>
ServerInfo represents a server that a player can connect to. This object is immutable and safe for concurrent access.
  • Constructor Details

    • ServerInfo

      public ServerInfo(String name, InetSocketAddress address)
      Creates a new ServerInfo object.
      Parameters:
      name - the name for the server
      address - the address of the server to connect to
  • Method Details