sendPacket

abstract fun sendPacket(packet: Packet<*>, distance: Short): Boolean

Sends a TCP packet to players within the specified distance.

Return

true if the packet was successfully sent, false otherwise.

Parameters

packet

The packet to send.

distance

The maximum distance at which players can receive the packet.