Class QueryMessageEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
septogeddon.pluginquery.bungeecord.event.QueryMessageEvent
All Implemented Interfaces:
net.md_5.bungee.api.plugin.Cancellable

public class QueryMessageEvent extends net.md_5.bungee.api.plugin.Event implements net.md_5.bungee.api.plugin.Cancellable
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:
    • isCancelled

      public boolean isCancelled()
      Check if this event has been cancelled by previous lower priority listener
      Specified by:
      isCancelled in interface net.md_5.bungee.api.plugin.Cancellable
    • setCancelled

      public void setCancelled(boolean arg0)
      Cancel this event
      Specified by:
      setCancelled in interface net.md_5.bungee.api.plugin.Cancellable