> ## 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.

# Virtual Currency

> You can let your customers purchase items using virtual currency that they earned on your Minecraft server.

## Introduction

**Virtual Currency** is a great way to let your customers purchase items using virtual currency that they earned on your Minecraft server. You can make packages that can be **purchased only** with virtual currency. It motivates players to **earn more virtual currency** and spend it on your webstore.

<Warning>
  **Virtual Currency is not real money**. It is a virtual currency that players earn on your Minecraft server. They can use this virtual currency to purchase items on your webstore.

  You need to have a **Minecraft server** with a **Vault-hooked economy plugin** and **MineStore Plugin** installed and configured to **webstore MySQL** to use the Virtual Currency feature.
</Warning>

## How to Enable Virtual Currency

To enable this feature:

1. Go to the **Settings > Currency Management** tab in the sidebar.
2. Scroll down to the **Virtual Currency** section.
3. **Enable** the **Virtual Currency** option.
4. Give a **name** to the virtual currency (e.g., `Coins`, `Tokens`, `KQ`, etc.).
5. Configure command to **charge** the virtual currency from the player when they purchase a package on the Minecraft server. (e.g., `eco remove {username} {amount}`).

<img src="https://mintcdn.com/minestorecms/VtrvDTg9Ae1Jio21/images/features/virtual-currency/virtual-currency-feature.png?fit=max&auto=format&n=VtrvDTg9Ae1Jio21&q=85&s=9bdf8d72d0afbfe87b92d6c117eeb997" alt="Virtual Currency" className="rounded-md" width="365" height="262" data-path="images/features/virtual-currency/virtual-currency-feature.png" />

<Check>
  You can use **placeholders** in the command to charge the virtual currency. For example, `{username}` will be replaced with the player's username, and `{amount}` will be replaced with the package price.
</Check>

<CardGroup cols={1}>
  <Card title="Connecting Webstore to Minecraft Server" icon="plug" href="/plugin/plugin-configuration#enabling-mysql">
    You need to connect your webstore to the Minecraft server to use the Virtual Currency feature.
  </Card>
</CardGroup>

## Security Recommendations

We highly recommend you to use **Virtual Currency** feature with caution. Here are some security recommendations to keep in mind:

1. Configure **secure connection** between your webstore and Minecraft server through MySQL by whitelisting IPs.
2. Enable **In-Game Verification** auth method to verify the player's identity before let them purchase packages with virtual currency.

<CardGroup cols={1}>
  <Card title="In-Game Auth Verification" icon="plug" href="/features/in-game-auth-verification">
    Enable In-Game Auth Verification to verify the player's identity before logging in to the webstore.
  </Card>
</CardGroup>
