Class QueryMessageEvent

java.lang.Object
org.bukkit.event.Event
septogeddon.pluginquery.spigot.event.QueryMessageEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class QueryMessageEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Listen to received Query Message. Does not listen to QueryContext.PLUGIN_MESSAGING_CHANNEL channel.
Author:
Septogeddon
  • Constructor Details

    • QueryMessageEvent

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

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getConnection

      public QueryConnection getConnection()
      Get the connection
      Returns:
    • isCancelled

      public boolean isCancelled()
      Check if this event is cancelled
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean arg0)
      Cancel the event to stop the event pipeline. Does not cancel other listeners from QueryEventBus
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getChannel

      public String getChannel()
      The query channel
      Returns:
    • getMessage

      public byte[] getMessage()
      The query message
      Returns: