Package net.md_5.bungee.api.config
Class ListenerInfo
java.lang.Object
net.md_5.bungee.api.config.ListenerInfo
Class representing the configuration of a server listener. Used for allowing
multiple listeners on different ports.
-
Constructor Summary
ConstructorDescriptionListenerInfo
(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. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.replaced byserverPriority
getHost()
Deprecated.BungeeCord can listen via Unix domain sockets
-
Constructor Details
-
ListenerInfo
@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) Deprecated.
-
-
Method Details
-
getDefaultServer
Deprecated.replaced byserverPriority
Gets the highest priority server to join.- Returns:
- default server
-
getFallbackServer
Deprecated.replaced byserverPriority
Gets the second highest priority server to join, or else the highest priority.- Returns:
- fallback server
-
getHost
Deprecated.BungeeCord can listen via Unix domain socketsGets the bind address as an InetSocketAddress if possible.- Returns:
- bind host
-
serverPriority