Set up an economy and shop (Vault)
Install Vault, an economy provider, and a shop plugin to monetize a Minecraft server.
Set up an economy and shop (Vault)
An in-game economy lets players trade, buy blocks, and fund events. It relies on three building blocks: Vault (the bridge), an economy provider, and a shop plugin.
Cause / The problem
Without Vault, each plugin manages its own currency and balances don’t sync between them. The shop and jobs plugins, for instance, would use two separate accounts.
Solution
- Install Vault in the
plugins/folder. It’s an API: no player uses it directly, but other plugins depend on it. On startup, check theVault enabledline in the console. - Add an economy provider. EssentialsX (the
EssentialsXEconomymodule) is the most common:
Other options: XConomy, TNE. Only one provider at a time.# plugins/Essentials/config.yml starting-balance: 100.0 currency-symbol: "$" - Install a shop plugin compatible with Vault. Common examples: ShopGUI+, EconomyShopGUI, or EssentialsX’s
/shop. Prices and stock are defined in a YAML file per category. - Give a starting balance. New players automatically receive
starting-balance. To adjust an existing player:/bal give <username> 100 - Wire up income sources. Jobs Reborn, Quests, or mob drops feed the balance through Vault. Check that each plugin shows
[Vault] hookedin its logs. - Debug common issues:
Economy response: FAILURE→ two providers are fighting over Vault. Disable one.- Balances reset to zero after restart → storage (MySQL/LiteSQL) isn’t configured, or the file is read-only.
/paydoesn’t work → the command plugin doesn’t declare Vault as a soft dependency.
Back up the economy file regularly (often plugins/Essentials/userdata/) to avoid any balance loss.