public class BungeeCord extends ProxyServer
Modifier and Type | Field and Description |
---|---|
Configuration |
config
Configuration.
|
io.netty.channel.EventLoopGroup |
eventLoops |
com.google.gson.Gson |
gson |
boolean |
isRunning
Current operation state.
|
PluginManager |
pluginManager
Plugin manager.
|
Constructor and Description |
---|
BungeeCord() |
getConfig, getConfigurationAdapter, getLogger, getPluginManager, getPluginsFolder, getReconnectHandler, getScheduler, setConfigurationAdapter, setInstance, setReconnectHandler
public volatile boolean isRunning
public final Configuration config
public io.netty.channel.EventLoopGroup eventLoops
public final PluginManager pluginManager
public final com.google.gson.Gson gson
public BungeeCord() throws IOException
IOException
public static BungeeCord getInstance()
public void start() throws Exception
Exception
- any critical errors encounteredpublic void startListeners()
public void stopListeners()
public void stop()
stop
in class ProxyServer
public void stop(String reason)
stop
in class ProxyServer
public void broadcast(DefinedPacket packet)
packet
- the packet to sendpublic String getName()
getName
in class ProxyServer
public String getVersion()
getVersion
in class ProxyServer
public void reloadMessages()
public String getTranslation(String name, Object... args)
getTranslation
in class ProxyServer
public Collection<ProxiedPlayer> getPlayers()
getPlayers
in class ProxyServer
public int getOnlineCount()
getOnlineCount
in class ProxyServer
public ProxiedPlayer getPlayer(String name)
getPlayer
in class ProxyServer
public UserConnection getPlayerByOfflineUUID(UUID name)
public ProxiedPlayer getPlayer(UUID uuid)
getPlayer
in class ProxyServer
public Map<String,ServerInfo> getServers()
getServers
in class ProxyServer
public ServerInfo getServerInfo(String name)
getServerInfo
in class ProxyServer
public void registerChannel(String channel)
registerChannel
in class ProxyServer
public void unregisterChannel(String channel)
unregisterChannel
in class ProxyServer
public Collection<String> getChannels()
getChannels
in class ProxyServer
public PluginMessage registerChannels(int protocolVersion)
public int getProtocolVersion()
getProtocolVersion
in class ProxyServer
public String getGameVersion()
getGameVersion
in class ProxyServer
public ServerInfo constructServerInfo(String name, InetSocketAddress address, String motd, boolean restricted)
constructServerInfo
in class ProxyServer
public ServerInfo constructServerInfo(String name, SocketAddress address, String motd, boolean restricted)
constructServerInfo
in class ProxyServer
public CommandSender getConsole()
getConsole
in class ProxyServer
public void broadcast(String message)
broadcast
in class ProxyServer
public void broadcast(net.md_5.bungee.api.chat.BaseComponent... message)
broadcast
in class ProxyServer
public void broadcast(net.md_5.bungee.api.chat.BaseComponent message)
broadcast
in class ProxyServer
public void addConnection(UserConnection con)
public void removeConnection(UserConnection con)
public Collection<String> getDisabledCommands()
getDisabledCommands
in class ProxyServer
public Collection<ProxiedPlayer> matchPlayer(String partialName)
matchPlayer
in class ProxyServer
public Title createTitle()
createTitle
in class ProxyServer
Copyright © 2012–2020 SpigotMC. All rights reserved.