Command Queue
Last updated
Last updated
GET
https://plugin.tebex.io/queue
List the players who have commands due to be executed when they next login to the game server. This endpoint also returns any offline commands to be processed and the amount of seconds to wait before performing the queue check again. All clients should strictly follow the response of next_check
, failure to do so would result in your secret key being revoked or IP address being banned from accessing the API.
NOTE: The `player.id` field is an internal ID, sometimes referred to as the 'plugin username ID'. This is the value to use to retrieve online commands for a player (see below). the `player.uuid` field is the actual username ID value, depending on the username type (a Steam64ID for steam games, an XUID for Xbox Live etc), and is the value that should be used to replace the `{id}` placeholder in commands.
Name | Type | Description |
---|
GET
https://plugin.tebex.io/queue/offline-commands
Get the offline commands which are due to be executed. These commands should be executed immediately and no checks are required against the related players. NOTE: The `player.id` field is an internal ID, sometimes referred to as the 'plugin username ID', and isn't needed for offline commands. The `player.uuid` field is the actual username ID value, depending on the username type (a Steam64ID for steam games, an XUID for Xbox Live etc), and is the value that should be used to replace the `{id}` placeholder in commands.
GET
https://plugin.tebex.io/queue/online-commands/{player-id}
List the due online commands for a specific player. These commands should only be executed when the player is online and all the conditions have been met (such as if the player has the required amount of inventory slots).
DELETE
https://plugin.tebex.io/queue
Delete one or more commands which have been executed on the game server.
An empty response with the status code of204 No Content
will be returned on completion.
Name | Type | Description |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
X-Tebex-Secret | string | The secret key of the server. |
player-id | string | The ID of the player you want to retrieve the online commands for. |
X-Tebex-Secret | string | The secret key of the server. |
X-Tebex-Secret | string | The secret key of the server. |
ids | array | An array of one or more command IDs to delete. |
X-Tebex-Secret | string | The secret key of the server. |