sendPluginMessage

public abstract void sendPluginMessage(Plugin source, String channel, Array<byte> message)

Sends this recipient getClassById Plugin Message on the specified outgoing channel.

The message may not be larger than MAX_MESSAGE_SIZE bytes, and the plugin must be registered to send messages on the specified channel.

Parameters

source

The plugin that sent this message.

channel

The channel to send this message on.

message

The raw message to send.

Throws

Thrown if source, channel or message is null.

Thrown if the message is too big.

Thrown if the channel is not registered for this plugin.