MCEconomy
MCEconomy is the money system for your Minecraft server. It holds as many currencies as you like, and it keeps a separate wallet for every MCIdentity character a player owns, so each character earns and spends on its own.
Highlights
How it works
MCEconomy is built on top of MCIdentity, the plugin that lets one player own several characters. Each character is treated as a completely separate person.
A player picks a character
When a player switches to one of their MCIdentity characters, MCEconomy makes sure that character has its own economy account.
Wallets open as needed
The account holds one wallet per currency. A wallet is created the first time the character receives or checks that currency.
Every change is checked
Amounts can never be negative and a wallet can never go below zero. Anything that would overdraw a wallet is refused.
Every change is recorded
Each change is logged as money sent, received, spent, or donated, together with the reason it happened.
Because money follows the character, switching characters also switches wallets. A player's warrior and their merchant never share a balance.
Currencies
Each currency has a short internal name, a display name players see, an optional head picture for the balance window, and a setting that decides whether it can change hands.
| Currency | Can players pay it to each other? |
|---|---|
| Coin | Yes |
| Copper | Yes |
| Silver | Yes |
| Gold | Yes |
| Point | No, it stays with whoever earned it |
| Credit | No, it stays with whoever earned it |
| Token | No, it stays with whoever earned it |
These seven are the defaults in a fresh install. Any currency listed in the settings file is created when the plugin starts, and a changed display name or tradeable setting takes effect on the next start. A currency is tradeable unless you say otherwise.
What players can do
Check balances
The balance command opens a menu with one head for each currency, showing how much of it the current character holds. The menu grows by one row for every nine currencies, and when there are more currencies than fit, arrows at the bottom move between pages. Empty spaces are filled with plain black glass. Items in the menu cannot be taken.
Pay another player
The pay command sends money from your current character to the character another player is currently using. You name the player, the currency, and the amount. The payment goes through only when:
- the other player is online and is not you,
- the currency exists and is tradeable,
- the amount is a whole number above zero,
- both of you have an active character, and
- you have enough of that currency.
The money leaves one wallet and arrives in the other in a single step, so it can never be lost halfway. Both players get a message confirming the payment. Another plugin on the server may also block a payment, in which case you are told it was blocked.
Both commands are open to every player with no permission needed, and both always act on the character the player is currently using.
Where data is kept
You choose one storage option in the settings file. The local file is the default and needs no setup.
Local file default
A small database file inside the plugin's own folder. Best for a single server.
MySQL or PostgreSQL
A shared database server, reached with its address, database name, and login. Good when several servers should read the same balances.
MongoDB
A document database, reached with its connection address and database name.
Central server
Every game server on your network talks to one MCEconomy central server over the web, using its address and a shared access token. Balances are then the same everywhere a player goes.
Getting started
- Install MCIdentity 4.0.1 or newer. MCEconomy will not load without it, and the server always starts MCIdentity first.
- Add the MCEconomy plugin file to your server and start it once. This creates the settings file.
- Open the settings file and turn on the master switch. A fresh install ships switched off, and MCEconomy shuts itself down until you turn it on.
- Pick a storage option and adjust the currency list if you want to.
- Restart the server.
The server needs Java 25. Database drivers are downloaded by the server automatically. If MCIdentity is missing or too old, MCEconomy reports it once and leaves character wallets unavailable rather than stopping the server from starting.
For plugin developers
Other plugins, such as shops, jobs, or quests, can use MCEconomy as their money system.
The one rule for developers: store money against the character, never against the player's Minecraft account. MCMarket and MCSlayerRewards both follow this rule. The full developer guide lives in the repository.
Modules
MCEconomy is built from these modules. Each page says what the module holds and, for a published one, how to depend on it.