Package net.md_5.bungee.api.event
Class PluginMessageEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.TargetedEvent
net.md_5.bungee.api.event.PluginMessageEvent
- All Implemented Interfaces:
Cancellable
Event called when a plugin message is sent to the client or server.
-
Constructor Summary
ConstructorDescriptionPluginMessageEvent
(Connection sender, Connection receiver, String tag, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
byte[]
getData()
Data contained in this plugin message.getTag()
Tag specified for this plugin message.int
hashCode()
boolean
Cancelled state.void
setCancelled
(boolean cancelled) Cancelled state.toString()
Methods inherited from class net.md_5.bungee.api.event.TargetedEvent
getReceiver, getSender
-
Constructor Details
-
PluginMessageEvent
-
-
Method Details
-
isCancelled
public boolean isCancelled()Cancelled state.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- the cancelled state of this event
-
getTag
Tag specified for this plugin message. -
getData
public byte[] getData()Data contained in this plugin message. -
setCancelled
public void setCancelled(boolean cancelled) Cancelled state.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- the state to set
-
toString
- Overrides:
toString
in classTargetedEvent
-
equals
- Overrides:
equals
in classTargetedEvent
-
canEqual
- Overrides:
canEqual
in classTargetedEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTargetedEvent
-