← Back to Index
CommandOutputPacket (79)
"slash" command execution output, server to client.
| Field Name |
Type |
Field Index |
Description |
| Origin Data (Required) |
CommandOriginData |
0 |
The origin of the command. |
CommandOriginData
| Field Name |
Type |
Field Index |
Description |
| Type (Required) |
string |
0 |
The command origin type. |
Enum Values:
| Index |
Value |
| 0 |
Player |
| 1 |
DevConsole |
| 2 |
Test |
| 3 |
AutomationPlayer |
|
| UUID (Required) |
mce::UUID |
1 |
The 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
| Field Name |
Type |
Field Index |
Description |
| Most Significant Bits (Required) |
uint64 |
0 |
|
| Least Significant Bits (Required) |
uint64 |
1 |
|
|
| RequestId |
string |
2 |
The request Id. |
| PlayerId |
int64 |
3 |
The player Id. |
|
| Output (Required) |
CommandOutput |
1 |
The output. |
CommandOutput
| Field Name |
Type |
Field Index |
Description |
| Output Type (Required) |
string |
0 |
The command output type. |
Enum Values:
| Index |
Value |
| 0 |
None |
| 1 |
LastOutput |
| 2 |
Silent |
| 3 |
AllOutput |
| 4 |
DataSet |
|
| Success Count (Required) |
uint32 |
1 |
The success count. |
| Output Messages |
array<CommandOutputMessage> |
2 |
The messages. |
CommandOutputMessage (Array Item)
| Field Name |
Type |
Field Index |
Description |
| Message ID (Required) |
string |
0 |
The unique identifier for the message. |
| Successful? (Required) |
boolean |
1 |
The command output type. |
| Parameters |
array<string> |
2 |
The parameters for the message. |
|
| Data Set |
string |
3 |
The data set. |
|