Sent as the server receives a network packet from a client. If cancelled, the server will not parse the network packet and will silently ignore it.
Properties
cancel
cancel: boolean;
Type: boolean
packetId
read-only packetId: PacketId;
The type of network packet.
Type: PacketId
packetSize
read-only packetSize: number;
The size of the network packet in bytes.
Type: number
sender
read-only sender?: minecraftserver.Player;
Which client sent the network packet to the game server.
Type: @minecraft/server.Player