Class VelocityPluginQuery

java.lang.Object
septogeddon.pluginquery.velocity.VelocityPluginQuery
All Implemented Interfaces:
QueryListener

public class VelocityPluginQuery extends Object implements QueryListener
  • Field Details

    • REGISTERED_SERVER

      public static final QueryMetadataKey<com.velocitypowered.api.proxy.server.RegisteredServer> REGISTERED_SERVER
      Metadata Key for RegisteredServer
    • REMOTEOBJECT_PROXYSERVER

      public static final QueryMetadataKey<VelocityRemoteObjectMessenger> REMOTEOBJECT_PROXYSERVER
      Metadata for ProxyServer on RemoteObject
    • LEGACY_IDENTIFIER

      @Deprecated protected static final com.velocitypowered.api.proxy.messages.ChannelIdentifier LEGACY_IDENTIFIER
      Deprecated.
    • MODERN_IDENTIFIER

      protected static final com.velocitypowered.api.proxy.messages.ChannelIdentifier MODERN_IDENTIFIER
  • Constructor Details

    • VelocityPluginQuery

      @Inject public VelocityPluginQuery(com.velocitypowered.api.proxy.ProxyServer server, org.slf4j.Logger logger, Path folder)
  • Method Details

    • getConnection

      public static QueryConnection getConnection(com.velocitypowered.api.proxy.server.RegisteredServer server)
      Get active connection for RegisteredServer
      Parameters:
      server -
      Returns:
      a QueryConnection used to connect to specified server
    • initializeConnectors

      public void initializeConnectors()
    • pluginMessageEvent

      public void pluginMessageEvent(com.velocitypowered.api.event.connection.PluginMessageEvent event)
    • shutdown

      public void shutdown(com.velocitypowered.api.event.proxy.ProxyShutdownEvent e)
    • sendMessage

      public void sendMessage(com.velocitypowered.api.proxy.Player player, String message)
    • getEncryption

      public EncryptionToolkit getEncryption()
    • shutdownConnectors

      public void shutdownConnectors()
    • reloadConfig

      public void reloadConfig()
    • getDataFolder

      public File getDataFolder()
    • getQueryConfig

      public QueryConfiguration getQueryConfig()
    • getLogger

      public org.slf4j.Logger getLogger()
    • getServer

      public com.velocitypowered.api.proxy.ProxyServer getServer()
    • 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 -
    • 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 -