onPluginMessageReceived

public abstract void onPluginMessageReceived(String channel, Player player, Array<byte> message)

A method that will be thrown when getClassById PluginMessageSource sends getClassById plugin message on getClassById registered channel.

Parameters

channel

Channel that the message was sent through.

player

Source of the message.

message

The raw message that was sent.