← Packet index

Packet 361

ChatPacket

Player chat routed through Mojang Managed Chat

Carries a Chat Service signature that receiving clients verify. The hosting server relays the signed block unmodified and may only decorate around it.

Packet datagramWire order
HeaderID 361varuint
0Signed ChatSignedChat · variable
1FormattingChatFormatting · variable

Serialized fields

2 top-level fields
  1. 0Signed ChatRelayed unmodified by the hosting serverSignedChat
    1. 0Key IdIdentifies which published Chat Service key signed this message; empty when unsignedstring
    2. 1Sender IdThe identity the Chat Service signed against; empty when unsignedstring
    3. 2Room IdRoom the signature was minted for, empty when unsigned; a receiver rebuilds over its own and will not match otherwisestring
    4. 3Message IdClient generated id for this message; empty when unsignedstring
    5. 4Scan TextThe message the Chat Service scanned and signedstring
    6. 5Redacted TextRedacted form of the message; empty means nothing needed redactingstring
    7. 6SignatureChat Service signature over the fields above; empty when the sender could not signstring
  2. 1FormattingoptionalOptional server decoration rendered around the signed name and messageChatFormatting
    1. 0Name PrefixoptionalServer decoration rendered before the author namestring
    2. 1Name PostfixoptionalServer decoration rendered after the author namestring
    3. 2Message PrefixoptionalServer decoration rendered before the messagestring
    4. 3Message PostfixoptionalServer decoration rendered after the messagestring

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.