> ## Documentation Index
> Fetch the complete documentation index at: https://docs.minestorecms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Global Commands

> Global Commands is the way how you can run same command everytime when purchase is made.

## Introduction

**Global Commands** are a great way to run the same command every time a purchase is made. You can add **global command** once to this module and it will be executed every time a purchase is made.

<Info>
  **Note**: You can also configure **price conditions** for the global commands to run only when the price conditions are met.
</Info>

## Enabling Global Commands

<img src="https://mintcdn.com/minestorecms/hEiQYqsBtWkxDBJ3/images/features/global-commands/global-command.png?fit=max&auto=format&n=hEiQYqsBtWkxDBJ3&q=85&s=50e87eb481e7d19b6af25f395cb998c2" alt="Global Commands" className="rounded-md" width="1546" height="681" data-path="images/features/global-commands/global-command.png" />

1. Go to the **Global Commands** tab in the sidebar.
2. Enable the **Global Commands** module.
3. Click on the **Add A New Global Command** button to add a new global command.
4. Configure the command you want to run every time a purchase is made.
   * **Command**: Enter the command you want to run.
   * **Select Servers To Run The Command**: Select the servers on which you want to run the command.
   * **Online Check**: You can enable the **Check if the user is online?** option to run the command only when the user is online.
   * **Minimal Price**: You can set the **minimal price** for the command to run only when the price conditions are met.
5. **Save Changes**.

<Check>
  You can add **multiple global commands** to run different commands every time a purchase is made.
</Check>

## Placeholder Variables

You can use **placeholder variables** in the command that will be replaced with the actual values when the command is executed. The following placeholder variables are available:

| **Variable**   | **Meaning of the Variable / Replaces With** |
| -------------- | ------------------------------------------- |
| `{username}`   | User nickname                               |
| `{price}`      | Package price                               |
| `{currency}`   | Currency                                    |
| `{uuid}`       | UUID (Universally Unique Identifier)        |
| `{time}`       | Command execution time                      |
| `{date}`       | Command execution date                      |
| `{customerIP}` | Customer IP                                 |
