Commands in queue
With this API, you can get all commands that are ready to be processed.
Please note
Authorization Bearer token is the token for your server. You can find that in Integrations > Servers
Example request:
info
Every game can return different values.
curl "https://api.gamecms.org/v2/commands/queue/minecraft" \
-H 'Accept: application/json' \
-H 'Authorization: Bearer your-token' \
-X GET
Example response (Minecraft) - 200
{
"status": 200,
"data": [
{
"id": 1,
"username": "Notch",
"must_be_online": "false",
"commands": [
"heal Notch",
"say Server: Thank you Notch!"
]
},
{
"id": 2,
"username": "Steve",
"must_be_online": "false",
"commands": [
"gamemode creative Steve",
"say Server: Steve is now on creative mode!"
]
}
]
}