Class ListenerInfo

java.lang.Object
net.md_5.bungee.api.config.ListenerInfo

public class ListenerInfo extends Object
Class representing the configuration of a server listener. Used for allowing multiple listeners on different ports.
  • 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 public String getDefaultServer()
      Deprecated.
      replaced by serverPriority
      Gets the highest priority server to join.
      Returns:
      default server
    • getFallbackServer

      @Deprecated public String getFallbackServer()
      Deprecated.
      replaced by serverPriority
      Gets the second highest priority server to join, or else the highest priority.
      Returns:
      fallback server
    • getHost

      @Deprecated public InetSocketAddress getHost()
      Deprecated.
      BungeeCord can listen via Unix domain sockets
      Gets the bind address as an InetSocketAddress if possible.
      Returns:
      bind host