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 |
YAMLSection |
lang |
java.io.PrintStream |
out |
boolean |
redis |
java.util.Map<java.lang.String,Server> |
servers |
SubDataClient |
subdata |
Version |
version |
Modifier and Type | Method and Description |
---|---|
void |
add(SubAddServerEvent e) |
void |
edit(SubEditServerEvent e) |
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
|
<T> java.lang.Object |
redis(java.lang.String method,
NamedContainer<java.lang.Class<T>,? extends T>... args)
Reference a RedisBungee method via reflection
|
void |
remove(SubRemoveServerEvent e) |
void |
reroute(net.md_5.bungee.api.event.ServerConnectEvent e) |
void |
start(SubStartEvent e) |
void |
startListeners()
Load Hosts, Servers, SubServers, and SubData Direct
|
void |
stop(SubStoppedEvent e) |
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.Map<java.lang.String,Server> servers
public final java.io.PrintStream out
public final UniversalFile dir
public YAMLConfig config
public YAMLSection lang
public boolean redis
public SubDataClient subdata
public final Version version
public final Version bversion
public final SubAPI api
public void startListeners()
startListeners
in class net.md_5.bungee.BungeeCord
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
public void stopListeners()
stopListeners
in class net.md_5.bungee.BungeeCord
startListeners()
public void reroute(net.md_5.bungee.api.event.ServerConnectEvent e)
public void add(SubAddServerEvent e)
public void start(SubStartEvent e)
public void edit(SubEditServerEvent e)
public void stop(SubStoppedEvent e)
public void remove(SubRemoveServerEvent e)