Sent as the server sends a network packet to clients. If cancelled, the server will not send the network packet to the receiving clients.
export class PacketSendBeforeEvent { private constructor(); cancel: boolean; readonly packetId: PacketId; readonly recipients: (minecraftserver.Player | undefined)[];} Copy
export class PacketSendBeforeEvent { private constructor(); cancel: boolean; readonly packetId: PacketId; readonly recipients: (minecraftserver.Player | undefined)[];}
Private
Readonly
The type of network packet.
This property can't be read in early-execution mode.
Which clients the network packet is being sent to.
Sent as the server sends a network packet to clients. If cancelled, the server will not send the network packet to the receiving clients.
Source