Storage

storage:
type: sqlite # yaml (data/data.yml) · sqlite (data/data.db) · mysql / mariadb (shared database)
- Balances of online players are kept in memory and saved on a separate thread: the server never waits.
- MySQL: several servers can share the balances (they refresh every few seconds), changes are atomic.
- MySQL 8 with a normal user needs
allowPublicKeyRetrieval=trueinstorage.mysql.flags(in the default flags since 4.1.1); without it the plugin doesn't start and the console says so. Shop limits and stock are shared too. /mobcoins migrate <yaml|sqlite|mysql>copies every balance to another storage; then setstorage.typeand restart.- Same files and table as 3.x: old data is used as it is (duplicated rows left by 3.x are merged).
- Balances keep 2 decimals and go up to 90 trillion.
- (4.1.0+) Stats, boosters, notes and the event are in the table
<table>_stats(SQLite / MySQL) or indata/data.yml. They are written together every 30 seconds and when a player leaves. With MySQL boosters, events and the weekly / monthly top are the same on every server, and the rewards are given once./mobcoins migratecopies them too. - (4.2.0+) MySQL: a booster given or removed on another server to a player who is online here shows within
storage.refresh-seconds(default 10), with the "you got a booster" message. The kill milestones reached are the same on every server./mobcoins migratealso copies the shop limits and stock already used.
Last updated