sendPacket

abstract fun sendPacket(channel: String, data: ByteArray)

Sends a custom packet to the player to the specified channel.

Parameters

channel

The channel to which the packet should be sent.

data

The byte array containing packet data.