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 Summary
ConstructorsConstructorDescriptionQueryMessageEvent(QueryConnection connection, String channel, byte[] message) -
Method Summary
Modifier and TypeMethodDescriptionThe channelbyte[]getData()Synonym ofgetMessage()byte[]The query messageSynonym ofgetSender()The connection sendergetTag()Synonym ofgetChannel()booleanCheck if this event has been cancelled by previous lower priority listenervoidsetCancelled(boolean arg0) Cancel this eventMethods inherited from class net.md_5.bungee.api.plugin.Event
postCall
-
Constructor Details
-
QueryMessageEvent
-
-
Method Details
-
getSender
The connection sender- Returns:
- See Also:
-
getReceiver
Synonym ofgetSender()- Returns:
- See Also:
-
getChannel
The channel- Returns:
- See Also:
-
getTag
Synonym ofgetChannel()- Returns:
- See Also:
-
getMessage
public byte[] getMessage()The query message- Returns:
- See Also:
-
getData
public byte[] getData()Synonym ofgetMessage()- Returns:
- See Also:
-
isCancelled
public boolean isCancelled()Check if this event has been cancelled by previous lower priority listener- Specified by:
isCancelledin interfacenet.md_5.bungee.api.plugin.Cancellable
-
setCancelled
public void setCancelled(boolean arg0) Cancel this event- Specified by:
setCancelledin interfacenet.md_5.bungee.api.plugin.Cancellable
-