PEWS-API icon indicating copy to clipboard operation
PEWS-API copied to clipboard

CommandRequest Packet format too old.

Open LNSSPsd opened this issue 7 years ago • 0 comments

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"
    }
}

LNSSPsd avatar Dec 09 '18 11:12 LNSSPsd