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 |
Version |
bversion |
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 |
boolean |
redis |
long |
resetDate |
SubDataServer |
subdata |
SubServer |
sudo |
Version |
version |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Further override BungeeCord's signature when patched into the same jar
|
net.md_5.bungee.api.config.ServerInfo |
getServerInfo(java.lang.String name)
Emulate BungeeCord's getServerInfo()
|
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
|
<T> java.lang.Object |
redis(java.lang.String method,
NamedContainer<java.lang.Class<T>,? extends T>... 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, getTranslation, matchPlayer, registerChannel, registerChannels, removeConnection, setConfigurationAdapter, setReconnectHandler, start, stop, stop, unregisterChannel
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 final Version version
public final Version bversion
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 <T> java.lang.Object redis(java.lang.String method, NamedContainer<java.lang.Class<T>,? extends T>... args) throws java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
T
- Class Typemethod
- 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 net.md_5.bungee.api.config.ServerInfo getServerInfo(java.lang.String name)
getServerInfo
in class net.md_5.bungee.BungeeCord
name
- Server Name (Case Sensitive)SubAPI.getServer(String)
public void reroute(net.md_5.bungee.api.event.ServerConnectEvent e)
public void resetSudo(SubStoppedEvent e)