Class BungeePluginQuery
java.lang.Object
net.md_5.bungee.api.plugin.Plugin
septogeddon.pluginquery.bungeecord.BungeePluginQuery
- All Implemented Interfaces:
net.md_5.bungee.api.plugin.Listener
,QueryListener
public class BungeePluginQuery
extends net.md_5.bungee.api.plugin.Plugin
implements net.md_5.bungee.api.plugin.Listener, QueryListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QueryMetadataKey
<BungeeRemoteObjectMessenger> Metadata forProxyServer
onRemoteObject
static final QueryMetadataKey
<net.md_5.bungee.api.config.ServerInfo> Metadata Key forServerInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryConnection
getConnection
(net.md_5.bungee.api.config.ServerInfo info) Get active connection for aServerInfo
void
onConnectionStateChange
(QueryConnection connection) Called whenQueryConnection.isConnected()
value changedvoid
void
onEnable()
void
onPluginMessageReceived
(net.md_5.bungee.api.event.PluginMessageEvent e) void
onQueryReceived
(QueryConnection connection, String channel, byte[] message) Called when the connection received a query messagevoid
void
sendMessage
(Object obj, String msg) Methods inherited from class net.md_5.bungee.api.plugin.Plugin
getDataFolder, getDescription, getExecutorService, getFile, getLogger, getProxy, getResourceAsStream, onLoad
-
Field Details
-
SERVER_INFO
Metadata Key forServerInfo
-
REMOTEOBJECT_PROXYSERVER
Metadata forProxyServer
onRemoteObject
-
-
Constructor Details
-
BungeePluginQuery
public BungeePluginQuery()
-
-
Method Details
-
getConnection
Get active connection for aServerInfo
- Parameters:
info
-- Returns:
- a QueryConnection used to connect to specified server
-
onEnable
public void onEnable()- Overrides:
onEnable
in classnet.md_5.bungee.api.plugin.Plugin
-
onDisable
public void onDisable()- Overrides:
onDisable
in classnet.md_5.bungee.api.plugin.Plugin
-
getQueryConfig
-
getEncryption
-
onPluginMessageReceived
public void onPluginMessageReceived(net.md_5.bungee.api.event.PluginMessageEvent e) -
reloadConfig
public void reloadConfig() -
sendMessage
-
onQueryReceived
Description copied from interface:QueryListener
Called when the connection received a query message- Specified by:
onQueryReceived
in interfaceQueryListener
- Parameters:
connection
-channel
-message
-
-
onConnectionStateChange
Description copied from interface:QueryListener
Called whenQueryConnection.isConnected()
value changed- Specified by:
onConnectionStateChange
in interfaceQueryListener
- Parameters:
connection
-
-