PocketLedger 2.0.0
Simple, fast economy with /pay and /balance, SQLite or MySQL storage, and an async API other plugins can rely on.
Baixar .phar
Descrição
PocketLedger
The money plugin other plugins can build on. Balances are stored in SQLite (default) or MySQL, every change is logged, and nothing ever blocks the main thread.
For server owners
/balance,/pay <player> <amount>,/baltop- Admin command
/eco give|take|set <player> <amount> - Starting balance, currency name and number format in
config.yml - A transaction log you can search with
/eco log <player>
# plugins/PocketLedger/config.yml
starting-balance: 100
currency: { singular: "coin", plural: "coins", symbol: "©" }
storage:
type: sqlite # or mysql
mysql: { host: 127.0.0.1, database: ledger, user: ledger, password: "" }
For developers
use brambleworks\pocketledger\Ledger;
Ledger::get()->balance($player)->onCompletion(
fn(float $coins) => $player->sendMessage("You have $coins coins"),
fn() => $player->sendMessage("Your balance is not available right now")
);
Every call returns a promise. Transfers are atomic: Ledger::get()->transfer($from, $to, 25.0, reason: "market").
Migrating from another economy
/eco import <file.yml> reads the usual money.yml layouts. Back up first.
Mudanças
- Async API with promises (breaking for plugin developers, see the README)
- Transaction log
Versões
| Versão | API | Publicada | Downloads | |
|---|---|---|---|---|
| 2.1.3 | 5.0.0 – 5.99.0 | há 4 dias | 17,531 | – |
| 2.1.0 | 5.0.0 – 5.99.0 | 2026-08-23 | 8,765 | – |
| 2.0.0 | 5.0.0 – 5.99.0 | 2026-05-23 | 4,383 | – |
| 1.6.2 | 5.0.0 – 5.99.0 | 2025-12-24 | 2,191 | – |
Avaliações
I build my minigame rewards on it. The promise API is a pleasure.
Does one thing and does it well.
Clean API. The import from our old money.yml worked first time.
Rock solid. We have 40k transactions a week on MySQL and never lost a coin.
As avaliações estão desativadas na pré-visualização.