Package net.md_5.bungee
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 Summary
FieldsModifier and TypeFieldDescriptionfinal ResourceBundleLocalization bundle.final ConfigurationConfiguration.final io.netty.channel.MultithreadEventLoopGroupfinal com.google.gson.GsonbooleanCurrent operation state.final net.md_5.bungee.api.plugin.PluginManagerPlugin manager. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbroadcast(net.md_5.bungee.protocol.packet.DefinedPacket packet) Broadcasts a packet to all clients that is connected to this instance.net.md_5.bungee.api.config.ServerInfoconstructServerInfo(String name, InetSocketAddress address, String motd, boolean restricted) net.md_5.bungee.api.CommandSenderstatic BungeeCordgetName()intnet.md_5.bungee.api.connection.ProxiedPlayerCollection<net.md_5.bungee.api.connection.ProxiedPlayer> bytenet.md_5.bungee.api.config.ServerInfogetServerInfo(String name) getTranslation(String name, Object... args) voidvoidstart()Start this proxy instance by loading the configuration, plugins and starting the connect thread.voidvoidstop()voidMethods inherited from class net.md_5.bungee.api.ProxyServer
getConfigurationAdapter, getLogger, getPluginManager, getPluginsFolder, getReconnectHandler, getScheduler, setConfigurationAdapter, setInstance, setReconnectHandler
-
Field Details
-
isRunning
public volatile boolean isRunningCurrent operation state. -
config
Configuration. -
bundle
Localization bundle. -
eventLoops
public final io.netty.channel.MultithreadEventLoopGroup eventLoops -
pluginManager
public final net.md_5.bungee.api.plugin.PluginManager pluginManagerPlugin manager. -
gson
public final com.google.gson.Gson gson
-
-
Constructor Details
-
BungeeCord
- Throws:
IOException
-
-
Method Details
-
getInstance
-
start
Start this proxy instance by loading the configuration, plugins and starting the connect thread.- Specified by:
startin classnet.md_5.bungee.api.ProxyServer- Throws:
Exception
-
startListeners
public void startListeners() -
stopListeners
public void stopListeners() -
stop
public void stop()- Specified by:
stopin classnet.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
- Specified by:
getNamein classnet.md_5.bungee.api.ProxyServer
-
getVersion
- Specified by:
getVersionin classnet.md_5.bungee.api.ProxyServer
-
getTranslation
- Specified by:
getTranslationin classnet.md_5.bungee.api.ProxyServer
-
getPlayers
- Specified by:
getPlayersin classnet.md_5.bungee.api.ProxyServer
-
getOnlineCount
public int getOnlineCount()- Specified by:
getOnlineCountin classnet.md_5.bungee.api.ProxyServer
-
getPlayer
- Specified by:
getPlayerin classnet.md_5.bungee.api.ProxyServer
-
getServers
- Specified by:
getServersin classnet.md_5.bungee.api.ProxyServer
-
getServerInfo
- Specified by:
getServerInfoin classnet.md_5.bungee.api.ProxyServer
-
getProtocolVersion
public byte getProtocolVersion()- Specified by:
getProtocolVersionin classnet.md_5.bungee.api.ProxyServer
-
getGameVersion
- Specified by:
getGameVersionin classnet.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:
constructServerInfoin classnet.md_5.bungee.api.ProxyServer
-
getConsole
public net.md_5.bungee.api.CommandSender getConsole()- Specified by:
getConsolein classnet.md_5.bungee.api.ProxyServer
-
broadcast
- Specified by:
broadcastin classnet.md_5.bungee.api.ProxyServer
-
addConnection
-
removeConnection
-
getDisabledCommands
- Specified by:
getDisabledCommandsin classnet.md_5.bungee.api.ProxyServer
-