public class ListenerInfo extends Object
Constructor and Description |
---|
ListenerInfo(InetSocketAddress host,
String motd,
int maxPlayers,
int tabListSize,
List<String> serverPriority,
boolean forceDefault,
Map<String,String> forcedHosts,
String tabListType,
boolean setLocalAddress,
boolean pingPassthrough,
int queryPort,
boolean queryEnabled)
Deprecated.
|
ListenerInfo(SocketAddress socketAddress,
String motd,
int maxPlayers,
int tabListSize,
List<String> serverPriority,
boolean forceDefault,
Map<String,String> forcedHosts,
String tabListType,
boolean setLocalAddress,
boolean pingPassthrough,
int queryPort,
boolean queryEnabled,
boolean proxyProtocol) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getDefaultServer()
Deprecated.
replaced by
serverPriority |
String |
getFallbackServer()
Deprecated.
replaced by
serverPriority |
Map<String,String> |
getForcedHosts()
A list of host to server name mappings which will force a user to be
transferred depending on the host they connect to.
|
InetSocketAddress |
getHost()
Deprecated.
BungeeCord can listen via Unix domain sockets
|
int |
getMaxPlayers()
Max amount of slots displayed on the ping page.
|
String |
getMotd()
Displayed MOTD.
|
int |
getQueryPort()
What port to run udp query on.
|
List<String> |
getServerPriority()
List of servers in order of join attempt.
|
SocketAddress |
getSocketAddress()
Host to bind to.
|
int |
getTabListSize()
Number of players to be shown on the tab list.
|
String |
getTabListType()
The type of tab list to use
|
int |
hashCode() |
boolean |
isForceDefault()
Whether reconnect locations will be used, or else the user is simply
transferred to the default server on connect.
|
boolean |
isPingPassthrough()
Whether to pass the ping through when we can reliably get the target
server (force default server).
|
boolean |
isProxyProtocol()
Whether to support HAProxy PROXY protocol.
|
boolean |
isQueryEnabled()
Whether to enable udp query.
|
boolean |
isSetLocalAddress()
Whether to set the local address when connecting to servers.
|
String |
toString() |
@Deprecated public ListenerInfo(InetSocketAddress host, String motd, int maxPlayers, int tabListSize, List<String> serverPriority, boolean forceDefault, Map<String,String> forcedHosts, String tabListType, boolean setLocalAddress, boolean pingPassthrough, int queryPort, boolean queryEnabled)
public ListenerInfo(SocketAddress socketAddress, String motd, int maxPlayers, int tabListSize, List<String> serverPriority, boolean forceDefault, Map<String,String> forcedHosts, String tabListType, boolean setLocalAddress, boolean pingPassthrough, int queryPort, boolean queryEnabled, boolean proxyProtocol)
@Deprecated public String getDefaultServer()
serverPriority
@Deprecated public String getFallbackServer()
serverPriority
@Deprecated public InetSocketAddress getHost()
public SocketAddress getSocketAddress()
public String getMotd()
public int getMaxPlayers()
public int getTabListSize()
public List<String> getServerPriority()
public boolean isForceDefault()
public Map<String,String> getForcedHosts()
public String getTabListType()
public boolean isSetLocalAddress()
public boolean isPingPassthrough()
public int getQueryPort()
public boolean isQueryEnabled()
public boolean isProxyProtocol()
protected boolean canEqual(Object other)
Copyright © 2012–2020 SpigotMC. All rights reserved.