SetUsername - [Deprecated]

SetUsername is a way of making the websocket human-identifiable. Without this, the player would only see the websocket-uuid which we don’t want him to see.

Sample

{
    "command": "setusername",
    "params": {
        "username": "your-username-here"
    }
}

Response

{
    "errorCode": 0,
    "message": "OK",
    "jsonData": {
        "newusername": "your-username-here"
    }
}