类 PacketReceivedBeforeEvent实验性

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.

属性

cancel: boolean
packetId: PacketId

The type of network packet.

packetSize: number

The size of the network packet in bytes.

sender?: Player

Which client sent the network packet to the game server.