PEWS-API
PEWS-API copied to clipboard
CommandRequest Packet format too old.
The format of CommandRequest packet is too old,
and it doesn't work in new MCPE.
The newest format of CommandRequest is:
{
"body": {
"origin": {
"type": "player"
},
"commandLine": "say abc", // Command line go there
"version": 1
},
"header": {
"requestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"messagePurpose": "commandRequest",
"version": 1,
"messageType": "commandRequest"
}
}