Class BungeeCord

java.lang.Object
net.md_5.bungee.api.ProxyServer
net.md_5.bungee.BungeeCord

public class BungeeCord extends net.md_5.bungee.api.ProxyServer
Main BungeeCord proxy class.
  • Field Details

    • isRunning

      public volatile boolean isRunning
      Current operation state.
    • config

      public final Configuration config
      Configuration.
    • bundle

      public final ResourceBundle bundle
      Localization bundle.
    • eventLoops

      public final io.netty.channel.MultithreadEventLoopGroup eventLoops
    • pluginManager

      public final net.md_5.bungee.api.plugin.PluginManager pluginManager
      Plugin manager.
    • gson

      public final com.google.gson.Gson gson
  • Constructor Details

  • Method Details

    • getInstance

      public static BungeeCord getInstance()
    • start

      public void start() throws Exception
      Start this proxy instance by loading the configuration, plugins and starting the connect thread.
      Specified by:
      start in class net.md_5.bungee.api.ProxyServer
      Throws:
      Exception
    • startListeners

      public void startListeners()
    • stopListeners

      public void stopListeners()
    • stop

      public void stop()
      Specified by:
      stop in class net.md_5.bungee.api.ProxyServer
    • broadcast

      public void broadcast(net.md_5.bungee.protocol.packet.DefinedPacket packet)
      Broadcasts a packet to all clients that is connected to this instance.
      Parameters:
      packet - the packet to send
    • getName

      public String getName()
      Specified by:
      getName in class net.md_5.bungee.api.ProxyServer
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in class net.md_5.bungee.api.ProxyServer
    • getTranslation

      public String getTranslation(String name, Object... args)
      Specified by:
      getTranslation in class net.md_5.bungee.api.ProxyServer
    • getPlayers

      public Collection<net.md_5.bungee.api.connection.ProxiedPlayer> getPlayers()
      Specified by:
      getPlayers in class net.md_5.bungee.api.ProxyServer
    • getOnlineCount

      public int getOnlineCount()
      Specified by:
      getOnlineCount in class net.md_5.bungee.api.ProxyServer
    • getPlayer

      public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer(String name)
      Specified by:
      getPlayer in class net.md_5.bungee.api.ProxyServer
    • getServers

      public Map<String,net.md_5.bungee.api.config.ServerInfo> getServers()
      Specified by:
      getServers in class net.md_5.bungee.api.ProxyServer
    • getServerInfo

      public net.md_5.bungee.api.config.ServerInfo getServerInfo(String name)
      Specified by:
      getServerInfo in class net.md_5.bungee.api.ProxyServer
    • getProtocolVersion

      public byte getProtocolVersion()
      Specified by:
      getProtocolVersion in class net.md_5.bungee.api.ProxyServer
    • getGameVersion

      public String getGameVersion()
      Specified by:
      getGameVersion in class net.md_5.bungee.api.ProxyServer
    • constructServerInfo

      public net.md_5.bungee.api.config.ServerInfo constructServerInfo(String name, InetSocketAddress address, String motd, boolean restricted)
      Specified by:
      constructServerInfo in class net.md_5.bungee.api.ProxyServer
    • getConsole

      public net.md_5.bungee.api.CommandSender getConsole()
      Specified by:
      getConsole in class net.md_5.bungee.api.ProxyServer
    • broadcast

      public void broadcast(String message)
      Specified by:
      broadcast in class net.md_5.bungee.api.ProxyServer
    • addConnection

      public void addConnection(UserConnection con)
    • removeConnection

      public void removeConnection(UserConnection con)
    • getDisabledCommands

      public Collection<String> getDisabledCommands()
      Specified by:
      getDisabledCommands in class net.md_5.bungee.api.ProxyServer