Class CrossProxyMessageEvent

java.lang.Object
me.internalizable.numdrassl.api.event.cluster.CrossProxyMessageEvent

public final class CrossProxyMessageEvent extends Object
Event fired when a plugin message is received from another proxy.

Plugins can use this for custom cross-proxy communication.

  • Constructor Details

    • CrossProxyMessageEvent

      public CrossProxyMessageEvent(@Nonnull PluginMessage message)
  • Method Details

    • getMessage

      @Nonnull public PluginMessage getMessage()
      Get the plugin message.
      Returns:
      the message
    • getPluginId

      @Nonnull public String getPluginId()
      Get the ID of the plugin that sent this message.
      Returns:
      the plugin ID
    • getChannel

      @Nonnull public String getChannel()
      Get the custom channel within the plugin namespace.
      Returns:
      the plugin channel
    • getPayload

      @Nonnull public String getPayload()
      Get the message payload.
      Returns:
      the payload string (typically JSON)
    • getSourceProxyId

      @Nonnull public String getSourceProxyId()
      Get the ID of the proxy that sent this message.
      Returns:
      the source proxy ID