Script API - v1.26.10
    Preparing search index...

    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)[];
    }
    Index

    Constructors

    Properties

    Constructors

    Properties

    cancel: boolean
    packetId: PacketId

    The type of network packet.

    This property can't be read in early-execution mode.

    recipients: (Player | undefined)[]

    Which clients the network packet is being sent to.

    This property can't be read in early-execution mode.