Class CrossProxyMessageEvent
java.lang.Object
me.internalizable.numdrassl.api.event.cluster.CrossProxyMessageEvent
Event fired when a plugin message is received from another proxy.
Plugins can use this for custom cross-proxy communication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the custom channel within the plugin namespace.Get the plugin message.Get the message payload.Get the ID of the plugin that sent this message.Get the ID of the proxy that sent this message.
-
Constructor Details
-
CrossProxyMessageEvent
-
-
Method Details
-
getMessage
-
getPluginId
Get the ID of the plugin that sent this message.- Returns:
- the plugin ID
-
getChannel
Get the custom channel within the plugin namespace.- Returns:
- the plugin channel
-
getPayload
Get the message payload.- Returns:
- the payload string (typically JSON)
-
getSourceProxyId
Get the ID of the proxy that sent this message.- Returns:
- the source proxy ID
-