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 Details

  • Constructor Details

    • BungeePluginQuery

      public BungeePluginQuery()
  • Method Details

    • getConnection

      public static QueryConnection getConnection(net.md_5.bungee.api.config.ServerInfo info)
      Get active connection for a ServerInfo
      Parameters:
      info -
      Returns:
      a QueryConnection used to connect to specified server
    • onEnable

      public void onEnable()
      Overrides:
      onEnable in class net.md_5.bungee.api.plugin.Plugin
    • onDisable

      public void onDisable()
      Overrides:
      onDisable in class net.md_5.bungee.api.plugin.Plugin
    • getQueryConfig

      public QueryConfiguration getQueryConfig()
    • getEncryption

      public EncryptionToolkit getEncryption()
    • onPluginMessageReceived

      public void onPluginMessageReceived(net.md_5.bungee.api.event.PluginMessageEvent e)
    • reloadConfig

      public void reloadConfig()
    • sendMessage

      public void sendMessage(Object obj, String msg)
    • onQueryReceived

      public void onQueryReceived(QueryConnection connection, String channel, byte[] message)
      Description copied from interface: QueryListener
      Called when the connection received a query message
      Specified by:
      onQueryReceived in interface QueryListener
      Parameters:
      connection -
      channel -
      message -
    • onConnectionStateChange

      public void onConnectionStateChange(QueryConnection connection)
      Description copied from interface: QueryListener
      Called when QueryConnection.isConnected() value changed
      Specified by:
      onConnectionStateChange in interface QueryListener
      Parameters:
      connection -