Skip to main content

Variables

Variables can be used in various parts of GSA, like Tasks, Shop packs, Supporter Tiers, Blueprints Discord Slash commands and Discord Emoji reactions.

Variables are used to dynamically include details such as a character name, username, ID, and more.

Blueprint variables

Working on blueprints? Then you can find more variables in the Blueprints documentation.

Variables

RCON command issues

If your commands or variables aren't working, check out this troubleshooting guide:
https://docs.gameserverapp.com/dashboard/monetization/deliveries#-troubleshooting-

Playersโ€‹

Player IDโ€‹

{player.id} Displays the player's unique ID (Steam, Epic, EOS, Mojang, etc).

Usernameโ€‹

{player.username} Displays the player's username.

Token countโ€‹

{player.token_count} Displays the player's current token balance.

Custom Roleโ€‹

{custom_role.1.minutes_remaining} shows the remaining time in minutes.
{custom_role.1.hours_remaining} shows the remaining time in hours.
{custom_role.1.days_remaining} shows the remaining time in days.

Characterโ€‹

Character IDโ€‹

{character.id} Displays the in-game character ID.

Character nameโ€‹

{character.name} Displays the in-game character name.

Groupโ€‹

Group IDโ€‹

{group.id} Displays the in-game group ID.

Group nameโ€‹

{group.name} Displays the in-game group name.

Game serverโ€‹

Game server nameโ€‹

{gameserver.name} Displays the server's name as it appears in the list.

Game server short nameโ€‹

{gameserver.short_name} Displays the server's short name.

Website nameโ€‹

{gameserver.website_name} Displays the server's website name.

Online player countโ€‹

{gameserver.online_player_count} Displays the number of currently online players.

Clusterโ€‹

Cluster nameโ€‹

{cluster.name} Displays the name of the cluster.

Online player countโ€‹

{cluster.123.online_player_count} Displays the number of currently online players.

Cluster ID

You can find the complete variable, with the right ID, for each cluster on the cluster page (bottom right).

Online servers countโ€‹

{cluster.123.online_servers_count} Displays the number of currently online servers.

Cluster ID

You can find the complete variable, with the right ID, for each cluster on the cluster page (bottom right).

Online slots countโ€‹

{cluster.123.online_slots_count} Displays the number of currently online slots.

Cluster ID

You can find the complete variable, with the right ID, for each cluster on the cluster page (bottom right).

Dashboardโ€‹

All dashboard count variables are cached for 4 minutes.

Online player countโ€‹

{dashboard.online_player_count} Displays the number of currently online players.

Online servers countโ€‹

{dashboard.online_servers_count} Displays the number of currently online servers.

Online slots countโ€‹

{dashboard.online_slots_count} Displays the number of currently online slots.

Taskโ€‹

The variables below are only available for Tasks.

Last run datetimeโ€‹

{task.123.last_run_datetime} Displays the last run date and time.

Scheduled task only

This variable is only available for scheduled tasks, you can find the complete variable for each task on the task page (bottom right).

Next run datetimeโ€‹

{task.123.next_run_datetime} Displays the next run date and time.

Scheduled task only

This variable is only available for scheduled tasks, you can find the complete variable for each task on the task page (bottom right).

Minutes until runโ€‹

{task.123.minutes_until_run} Displays the number of minutes until the next run.

Scheduled task only

This variable is only available for scheduled tasks, you can find the complete variable for each task on the task page (bottom right).

Hours until runโ€‹

{task.123.hours_until_run} Displays the number of hours until the next run.

Scheduled task only

This variable is only available for scheduled tasks, you can find the complete variable for each task on the task page (bottom right).

Days until runโ€‹

{task.123.days_until_run} Displays the number of days until the next run.

Scheduled task only

This variable is only available for scheduled tasks, you can find the complete variable for each task on the task page (bottom right).

Diff for humansโ€‹

{task.123.diff_for_humans} Displays the time difference until the next run in a human-readable format.

Scheduled task only

This variable is only available for scheduled tasks, you can find the complete variable for each task on the task page (bottom right).

Deliveryโ€‹

Delivery variables are used to dynamically include details about the delivery.

Delivery IDโ€‹

{delivery.id} Displays the delivery's unique ID.

Delivery statusโ€‹

{delivery.status} Displays the delivery's current status.

Shop pack variablesโ€‹

The variables below are only available for Shop pack deliveries.

Purchase dateโ€‹

{variable.purchase_date} Displays the purchase date.

Purchase amountโ€‹

{variable.purchase_amount} Displays the purchase amount.

Purchase currencyโ€‹

{variable.purchase_currency} Displays the purchase currency.

Transaction descriptionโ€‹

{variable.transaction_description} Displays the transaction description.

Item nameโ€‹

{variable.item_name} Displays the item name.

Supporter tier variablesโ€‹

The variables below are only available for Supporter tier deliveries.

Purchase dateโ€‹

{variable.purchase_date} Displays the purchase date.

Purchase amountโ€‹

{variable.purchase_amount} Displays the purchase amount.

Purchase currencyโ€‹

{variable.purchase_currency} Displays the purchase currency.

Purchase typeโ€‹

{variable.purchase_type} Displays the purchase type.

Gatewayโ€‹

{variable.gateway} Displays the gateway.

Gateway reference IDโ€‹

{variable.gateway_refid} Displays the gateway reference ID.

Item nameโ€‹

{variable.item_name} Displays the item name.

Slash command variablesโ€‹

The variables below are only available for Discord slash command deliveries.

Access group IDโ€‹

{variable.access_group_id} Displays the delivery's access group ID.

Membership typeโ€‹

{variable.membership_type} Displays the delivery's membership type.

Amountโ€‹

{variable.amount} Displays the amount.

Countdown minutesโ€‹

{variable.countdown_minutes} Displays the countdown duration in minutes.

Durationโ€‹

{variable.duration} Displays the duration.

Messageโ€‹

{variable.message} Displays the message.

Rcon commandโ€‹

{variable.rcon_command} Displays the rcon command.

Reasonโ€‹

{variable.reason} Displays the reason.

Variables for specific actionsโ€‹

Send tokensโ€‹

  • {variable.send_tokens.amount} Displays the amount of tokens that were sent.