@minecraft
    正在准备搜索索引...

    类 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.