Class QueryMessageEvent

java.lang.Object
septogeddon.pluginquery.velocity.event.QueryMessageEvent
All Implemented Interfaces:
com.velocitypowered.api.event.ResultedEvent<com.velocitypowered.api.event.ResultedEvent.GenericResult>

public class QueryMessageEvent extends Object implements com.velocitypowered.api.event.ResultedEvent<com.velocitypowered.api.event.ResultedEvent.GenericResult>
This class made to let you migrate from PluginMessaging easily. This event does not listen to QueryContext.PLUGIN_MESSAGING_CHANNEL
Author:
Septogeddon
  • Constructor Details

    • QueryMessageEvent

      public QueryMessageEvent(QueryConnection connection, String channel, byte[] message)
  • Method Details

    • getSender

      public QueryConnection getSender()
      The connection sender
      Returns:
      See Also:
    • getReceiver

      public QueryConnection getReceiver()
      Synonym of getSender()
      Returns:
      See Also:
    • getChannel

      public String getChannel()
      The channel
      Returns:
      See Also:
    • getTag

      public String getTag()
      Synonym of getChannel()
      Returns:
      See Also:
    • getMessage

      public byte[] getMessage()
      The query message
      Returns:
      See Also:
    • getData

      public byte[] getData()
      Synonym of getMessage()
      Returns:
      See Also:
    • cancelled

      public boolean cancelled()
      Check if this event has been cancelled by previous lower priority listener
    • cancelled

      public void cancelled(boolean arg0)
      Cancel this event
    • getResult

      public com.velocitypowered.api.event.ResultedEvent.GenericResult getResult()
      Get the result of this event
      Specified by:
      getResult in interface com.velocitypowered.api.event.ResultedEvent<com.velocitypowered.api.event.ResultedEvent.GenericResult>
      Returns:
    • setResult

      public void setResult(com.velocitypowered.api.event.ResultedEvent.GenericResult genericResult)
      Set the result of this event
      Specified by:
      setResult in interface com.velocitypowered.api.event.ResultedEvent<com.velocitypowered.api.event.ResultedEvent.GenericResult>
      Parameters:
      genericResult -