LogoLogo
  • Introducing Tebex
    • Why Tebex?
  • Pricing
    • Starter & Plus Plans
    • Fees Overview
      • Why We Charge a Platform Fee
  • Initial Setup
    • General checklist for setting up a Tebex store
    • Identity Verification for Tebex Store Onboarding
    • Your Store Review
    • Tips for getting your store application approved
    • What is Intellectual Property?
    • Adult Content Guidelines
  • Tebex Control Panel
    • Dashboard
    • Payments
      • Manual Payments
      • Recurring Payments
      • Payment Methods
      • Checkout Settings
      • Fraud Analysis
      • Wallet
      • Payment Exports
    • Packages
      • How To Create A Package
      • How To Create A Category
      • How To Test A Package
    • Statistics
    • Customers
      • Customer Lookup
      • Customer Bans
    • Webstore
      • Appearance
        • Our Footer
      • Sidebar
      • Pages
      • Variables
        • Template Variables
      • Currency
        • Regional Pricing
      • Translations
        • Language
        • Custom Translations
      • Emails
      • Domains
        • Subdomain & Custom Domain
      • Notifications
        • Slack & Discord Notifications
    • Engagement
      • Coupon Codes
      • Sales
      • Creator Codes
      • Gift Cards
      • Community Goals
      • Abandoned Basket Recovery
      • Purchase Follow Ups
      • Upselling
      • Offers
    • Game Servers
      • FiveM
        • FiveM (Server Wrapper)
      • Minecraft: Java Edition
        • BuycraftX
      • ARK: Survival Evolved
      • Minecraft: Bedrock Edition
      • Space Engineers
        • Space Engineers Item IDs
        • How the Legacy Space Engineers Vanilla Integration Works
        • Mod Guidelines and FAQs
      • Unturned
      • Rust
      • Garry's Mod
      • Hurtworld
      • Counter Strike: GO
      • 7 Days To Die
      • Team Fortress 2
      • Conan Exiles
      • RCON (Legacy)
      • RCON Adapter
      • MySQL Depreciation
    • Discord Servers
    • Store Transfers
    • Team Accounts
    • Billing
      • Store Cancellation
  • Tebex Checkout
    • How Payments Work
    • Seller Protection and Chargebacks
    • Where and Why We Charge Sales Tax/VAT
      • Information for Accountants
    • Checkout Process
    • Paysafecard
    • Wallet
    • Wallet Restrictions - Deposits & Locks
    • Fund Withdrawals and Transfers
      • PayPal Withdrawal Fees
      • Bank Account Withdrawal Fees
      • Wire Transfer List of Countries & Fees
    • Checkout FAQ
    • Seller Support Guidance
    • Checkout Seller Actions
      • Changing Usernames
      • Changing Discord ID's
      • Resending Commands
      • Customer Lookup
      • Checkout Bans
    • Tebex Checkout for WHMCS
  • Subscribe @ Tebex Academy
  • Developer Documentation
  • FAQs
  • Growth and Success
    • 🛒Tebex Store Best Practices
    • 📆Sales Calendar - 2025
    • 🎁Gift Cards
    • 💬Community Engagement
    • ❓Frequently asked questions
    • 🚗FiveM Best Practices for Packages
    • 🥼FiveM Beta Assets Best practices
    • 📖Creator Success: Case Studies
      • 🚛Reducing Support Backlog through Restructuring the Team
      • 🔁Improving User Retention via “Loss Leader”
      • 📅Subscription Stability and Growth
  • Command Management
    • An Introduction To Commands
    • Command Troubleshooting
    • Resending Commands
    • Support for Epic Game IDs
Powered by GitBook
On this page
  • How Do Commands Work?
  • How Can I Find Commands To Use?
  • Variables To Customise Your Commands
  • Username Variables Across All Games
  • Minecraft: Java Edition Username Variables
  • Garry's Mod Specific Variables
  • Ark: Survival Evolved Specific Variables
  • FiveM Specific Variables
  • Other Variables Available Across All Games
  • The Different Types Of Commands Available
  • Initial
  • Expiry
  • Renewal
  • Chargeback
  • Refund
  • Global Commands

Was this helpful?

  1. Command Management

An Introduction To Commands

PreviousSubscription Stability and GrowthNextCommand Troubleshooting

Last updated 3 months ago

Was this helpful?

The most vital part of Tebex Store is the ability to give the purchased products to the customer as soon as they have made a purchase. The majority of our sellers use our official plugins along with commands to do this and we'll explain below how this system works. We also support integration with your game server via RCON, MySQL and Webhooks however this article will not cover these topics. ​

How Do Commands Work?

When we refer to commands we are simply talking about the commands you would normally enter in your game server or via it's management console. For example in Minecraft you might enter the following command to give the customer Notch a gold block:

/give Notch gold_block

​ The way Tebex commands work is simple - when you create a package you enter a list of commands which you want to be executed on your server once a purchase has been made. For example, if we wanted to sell a package which gave the customer a gold block, you would enter the following command in your package configuration:

Once this package has been purchased the plugin will execute that command normally within 1~3 minutes. You may be wondering how we automatically replace the username with the customer who purchased, and that's done by variables. In the image above you can see we have replaced the username Notch with the variable {name} - the {name} aspect of the command would automatically be replaced with the username upon purchase. Awesome!

This system allows you to execute any commands you wish - if the command is executable on your server (For example from another third party plugin) then it'll work via Tebex too!

How Can I Find Commands To Use?

You will need to look up the relevant wikis for the game you are using, as well as any plugins or modifications you are using. We do not have a directory of commands as there are simply far too many to list. As a server owner, you should expect to spend a lot of time researching, and understanding the commands available for the various systems you will use, is very important.

Variables To Customise Your Commands

As we support the use of different games across the Tebex Store we offer slightly different ways of getting a customer username or their ID. All games support the same default variables, but some games may have additional variables.

Username Variables Across All Games

  • {id} - This will return the primary ID for that game type (Steam64 ID, Xbox Live XUID, Mojang UUID etc.)

  • {username} - This will return the username the customer used to log into your store.

Minecraft: Java Edition Username Variables

  • {name} - Legacy variable for the customers username.

  • {uuid} - Legacy variable for the customer's UUID.

Garry's Mod Specific Variables

  • {steamid} - This returns the older format Steam ID e.g. (STEAM_0:0:1000).

Ark: Survival Evolved Specific Variables

  • {ue4id} - This returns the UE4 ID for the customer on that game server (online commands only).

FiveM Specific Variables

  • {hexid} - This returns the Hex ID (e.g. steam:110000abf6b0001) for the customer (online commands only).

Other Variables Available Across All Games

  • {transaction} - The transaction ID of the payment.

  • {server} - Will output the name of the server.

  • {price} - The amount paid.

  • {currency} - The currency of the payment.

  • {time} - The time of purchase, e.g. 15:30.

  • {date} - The date of purchase, e.g. 13/01/2012.

  • {email} - The email address of the customer.

  • {ip} - The IP address of the customer.

  • {packageId} - The ID of the package.

  • {packagePrice} - The price of the package.

  • {packageExpiry} - The expiry length of the package (represented in the package's expiry period).

  • {packageName} - The name of the package.

  • {purchaserName} - The name of the customer who purchased a gift package.

  • {purchaserUuid} - The UUID of the customer who purchased a gift package.

  • {purchaseQuantity} - The quantity of the package that was purchased.

The Different Types Of Commands Available

Tebex Store supports different types of commands to execute at different stages (For example you might want to execute a command when the customer first purchases and execute a different command if they chargeback).

Initial

Initial commands will execute when the customer purchases the package.

Expiry

An expiry command is executed after the expiry period you set in your package configuration. These are useful if you only want a package to last for a certain amount of time for example if you are selling a monthly membership rank. You would set the rank to active with initial commands and remove the rank with expiry commands.

Renewal

These commands are executed when you are using subscription packages. This could be for executing a command which gives a player an additional 30 days of a rank membership, or a unique reward that is only given to players who renew their subscription! (Good incentive to stay subscribed).

Chargeback

These commands are executed when a chargeback is opened. You could use this command type to ban the customer from your game server if wanted.

Refund

These commands are executed when you refund a payment, for example, you may wish to remove the customer from their rank or role on your game server.

Global Commands

Global commands enable you to set up commands which execute across all packages, for example, if you wanted to set up a chargeback command without having to add them to all packages.

  1. Go to Game Servers > Global Commands.

  2. Enter the commands which you want to execute across all packages.

  3. Click Update.

For Global Commands, there are a couple of things you should note:

  1. The execute once per payment and not per package option may be useful for broadcasting on your game server that a purchase has been made.

  2. Global Commands will always be executed on all of your game servers, even if only specific servers are selected on the Global Commands themselves when you set them up.

  3. If you resend the commands on a payment, any global commands are also resent.