receive

abstract fun receive(player: McServerPlayer, data: ByteArray)

Invoked when a message is received on the associated channel.

Parameters

player

The McServerPlayer representing the player receiving the message.

data

The byte array containing the received message data.