Interface ChatJSONPacket

Sent to clients to broadcast a normal chat message.

PrintJSONPacket for all possible PrintJSON packet subtypes.

interface ChatJSONPacket {
    cmd: "PrintJSON";
    data: JSONMessagePart[];
    message: string;
    slot: number;
    team: number;
    type: "Chat";
}

Properties

cmd

All the textual metadata for this packet.

message: string

Original chat message without sender prefix.

slot: number

Slot of the triggering player.

team: number

Team of the triggering player.

type

The PrintJSONPacket subtype.