# Global Commands

## How to Create a Global Command

1. Navigate to the **Global Commands** tab in your dashboard sidebar.
2. Click the **New global command** button in the top-right corner.

You’ll be prompted to configure the command with the following options:

### **Stage**

Choose when this command should run:

* **On Purchase** – Triggered immediately after the product is purchased.
* **On Expire** – Triggered when the product subscription expires.
* **On Renew** – Triggered on a recurring subscription renewal.
* **On Refund** – Triggered when an order is refunded.
* **On Chargeback** – Triggered if a chargeback occurs.

### **Command**

Enter the command you want to execute. This will be sent to the game server or integration system depending on your setup.

#### **Execute when online**

> *(Optional)*\
> Enable this option if the command should only run while the customer is online (e.g., in-game). If left unchecked, the command will queue and run when possible.

### **Game Servers to Execute On**

Select which game servers this command should run on:

* If left empty, the command will apply to **all game servers selected per product**.
* If one or more servers are selected here, it overrides the product-level server setting.

***

## Managing Global Commands

Once created, all global commands will appear in a table showing:

* **Stage** – When the command is triggered
* **Content** – The actual command
* **Last Updated** – When the command was last modified

You can edit or delete commands at any time using the contextual options in the table.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.paynow.gg/store/global-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
