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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionQueryMessageEvent
(QueryConnection connection, String channel, byte[] message) -
Method Summary
Modifier and TypeMethodDescriptionThe query channelGet the connectionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
byte[]
The query messageboolean
Check if this event is cancelledvoid
setCancelled
(boolean arg0) Cancel the event to stop the event pipeline.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
QueryMessageEvent
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getConnection
Get the connection- Returns:
-
isCancelled
public boolean isCancelled()Check if this event is cancelled- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean arg0) Cancel the event to stop the event pipeline. Does not cancel other listeners fromQueryEventBus
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getChannel
The query channel- Returns:
-
getMessage
public byte[] getMessage()The query message- Returns:
-