public final class SubPlugin
extends net.md_5.bungee.BungeeCord
implements net.md_5.bungee.api.plugin.Listener
Modifier and Type | Field and Description |
---|---|
SubAPI |
api |
YAMLConfig |
config |
UniversalFile |
dir |
java.util.HashMap<java.lang.String,Server> |
exServers |
java.util.HashMap<java.lang.String,Host> |
hosts |
YAMLConfig |
langconfig |
java.io.PrintStream |
out |
java.util.HashMap<java.lang.String,Proxy> |
proxies |
boolean |
redis |
long |
resetDate |
SubDataServer |
subdata |
SubServer |
sudo |
static Version |
version |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Further override BungeeCord's signature when patched into the same jar
|
java.util.Map<java.lang.String,net.md_5.bungee.api.config.ServerInfo> |
getServers()
Emulate BungeeCord's getServers()
|
java.lang.String |
getVersion()
Further override BungeeCord's signature when patched into the same jar
|
java.lang.Object |
redis(java.lang.String method,
NamedContainer<java.lang.Class<?>,?>... args)
Reference a RedisBungee method via reflection
|
void |
reload()
Load data from the config (will attempt to merge with current configuration)
|
void |
reroute(net.md_5.bungee.api.event.ServerConnectEvent e) |
void |
resetSudo(SubStoppedEvent e) |
void |
startListeners()
Load SubServers before BungeeCord finishes
|
void |
stopListeners()
Reset all changes made by startListeners
|
addConnection, broadcast, broadcast, broadcast, broadcast, constructServerInfo, createTitle, getChannels, getConfig, getConfigurationAdapter, getConnectionThrottle, getConsole, getConsoleReader, getDisabledCommands, getGameVersion, getInstance, getLogger, getOnlineCount, getPlayer, getPlayer, getPlayerByOfflineUUID, getPlayers, getPluginManager, getPluginsFolder, getProtocolVersion, getReconnectHandler, getScheduler, getServerInfo, getTranslation, matchPlayer, registerChannel, registerChannels, removeConnection, setConfigurationAdapter, setReconnectHandler, start, stop, stop, unregisterChannel
public final java.util.HashMap<java.lang.String,Proxy> proxies
public final java.util.HashMap<java.lang.String,Host> hosts
public final java.util.HashMap<java.lang.String,Server> exServers
public final java.io.PrintStream out
public final UniversalFile dir
public YAMLConfig config
public YAMLConfig langconfig
public final SubAPI api
public SubDataServer subdata
public SubServer sudo
public static final Version version
public boolean redis
public long resetDate
public void startListeners()
startListeners
in class net.md_5.bungee.BungeeCord
public void reload() throws java.io.IOException
java.io.IOException
public void stopListeners()
stopListeners
in class net.md_5.bungee.BungeeCord
startListeners()
public java.lang.Object redis(java.lang.String method, NamedContainer<java.lang.Class<?>,?>... args) throws java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
method
- Method to referenceargs
- Method argumentsjava.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public java.lang.String getName()
getName
in class net.md_5.bungee.BungeeCord
public java.lang.String getVersion()
getVersion
in class net.md_5.bungee.BungeeCord
public java.util.Map<java.lang.String,net.md_5.bungee.api.config.ServerInfo> getServers()
getServers
in class net.md_5.bungee.BungeeCord
SubAPI.getServers()
public void reroute(net.md_5.bungee.api.event.ServerConnectEvent e)
public void resetSudo(SubStoppedEvent e)