类 PacketSendBeforeEvent实验性

Sent as the server sends a network packet to clients. If cancelled, the server will not send the network packet to the receiving clients.

属性

cancel: boolean
packetId: PacketId

The type of network packet.

recipients: Player[]

Which clients the network packet is being sent to.