← Packet index

Packet 79

CommandOutputPacket

"slash" command execution output, server to client.

Packet datagramWire order
HeaderID 79varuint
0Origin DataCommandOriginData · variable
1OutputCommandOutput · variable

Serialized fields

2 top-level fields
  1. 0Origin DataThe origin of the command.CommandOriginData
    1. 0TypeThe command origin type.string
      1. "Player"Player
      2. "DevConsole"DevConsole
      3. "Test"Test
      4. "AutomationPlayer"AutomationPlayer
    2. 1UUIDThe unique UUID that represents an instantiation of a command. Each time a command is run it should be given a UUID to represent that instance.mce::UUID
      1. 0Most Significant Bitsuint64
      2. 1Least Significant Bitsuint64
    3. 2RequestIdThe request Id.string
    4. 3PlayerIdThe player Id.int64
  2. 1OutputThe output.CommandOutput
    1. 0Output TypeThe command output type.CommandOutputTypeas string
      1. "None"None
      2. "LastOutput"LastOutput
      3. "Silent"Silent
      4. "AllOutput"AllOutput
      5. "DataSet"DataSet
    2. 1Success CountThe success count.uint32
    3. 2Output MessagesThe messages.CommandOutputMessageas array<CommandOutputMessage>
      1. 0Message IDThe unique identifier for the message.string
      2. 1Successful?The command output type.boolean
      3. 2ParametersThe parameters for the message.array<string>
      4. 3Raw MessageoptionalA rawtext JSON payload, to be resolved by the receiving client instead of Message ID and Parameters.string
    4. 3Data SetoptionalThe data set.string

Changelog

Stable releases

Changes between stable protocol releases.

Released
Protocol
2225

Packet

1 entry

Changed 1

CommandOutputPacket3 changes · ID 79
  • Changed supporting type CommandOriginData: Changed Type enum value DevConsole from 1 to 3.
  • Changed supporting type CommandOriginData: Changed Type enum value Test from 2 to 4.
  • Changed supporting type CommandOriginData: Changed Type enum value AutomationPlayer from 3 to 5.