The economy
A ledger, not a balance you can overwrite.
Most servers store a number and hope. Spend SMP stores an append-only history and derives balances from it, which is the difference between an economy you can trust and one you can only believe.
Balances shown in the player portal come from the same ledger the plugin writes to, so what you see in game and on the web cannot disagree.
Balances are derived
Every movement of money creates an immutable ledger entry with a reason, an actor and an idempotency key. Balances are computed from that history, so a double-submitted request cannot create money.
Escrow is a state machine
Listings, contracts, buy orders, trades and company payouts all move value into escrow first. Escrow has explicit states — held, released, refunded, disputed — and a timeout path so funds can never be stranded by a crash.
- No direct player-to-player transfers of escrowed goods.
- Crash recovery replays pending state rather than guessing.
- Reconciliation runs continuously and records every correction it makes.
Currencies
The server can issue confined currencies with explicit issuance rules and supply tracking. Each currency has an order book, price history and portfolio view, and is accepted only where the configuration allows.
What this prevents
- Duplicated purchases from retried requests.
- Item duplication across trade and escrow paths.
- Silent balance loss when a transaction fails halfway.
- Disputes that depend on staff memory instead of records.
What this does not do
The economy is real inside the server, and only there. Spend has no cash value, cannot be withdrawn, and can be rebalanced when an exploit requires it. Any correction is recorded and reversible.