C
PLUGIN DOCUMENTATION

Cash Flow

A Vault economy for Paper and Folia. Balances are kept in memory, so plugins that use Vault get an answer right away and never wait on the database. Every change is saved in the background and written to a log, so players can see their history and admins can see which plugin moved money and roll a balance back.

Paper / Folia 1.21.7+Java 21+VaultPlaceholderAPI optionalSQLite, MySQL or MariaDBRedis optional

Players pay each other with /pay, check their money with /balance and see the richest players with /baltop. The payer and the receiver both see the payment in chat and on the action bar and hear a sound. Several servers can share the same balances through MySQL and Redis.

Features

  • Works as the Vault economy, so shops, jobs, auction houses and every other Vault plugin use it
  • Balances kept in memory: Vault calls never wait on the database
  • Safe on Folia: two payments to or from the same player at the same moment can't create or lose money
  • Changes saved in the background within half a second, and everything saved when the server stops
  • /pay to online and offline players, with amounts like 500, 2.5k, 1m and 1b, a minimum amount and a cooldown
  • The payer and the receiver both get a chat line, an action bar line and a sound
  • Players who were offline see who paid them when they join
  • /paytoggle stops receiving payments; the player can still pay others
  • /paymsgtoggle hides payment messages and the sound; the money still arrives
  • /baltop in chat with clickable page arrows and your own rank; staff can be left out with a permission
  • /history shows a player's own transactions
  • /eco give, take, set and reset, with -s to do it without telling the player
  • /eco history shows a player's full log, including which plugin added or took money
  • /eco rollback puts a balance back to what it was a set time ago
  • Short amounts (1.5K, 2.5M) or full amounts (1,500.50), 0 to 2 decimals, any currency symbol
  • Every message in messages.yml with MiniMessage colors, and every sound can be changed
  • PlaceholderAPI placeholders for balances, ranks and the top list
  • Vault banks and name-based accounts, which plugins like Towny use
  • SQLite or MySQL/MariaDB
  • Network sync: one balance on several servers with MySQL and Redis
  • Folia support
  • /eco reload to reload the config and messages without a restart

Vault

  • Every Vault method works, including the old name-based ones. A name that isn't a player gets its own account, which is what plugins like Towny use for town banks.
  • Vault banks work: plugins can create, delete, fill and empty them. Vault has no way to add bank members, so only the owner counts as a member.
  • Every change a plugin makes is logged with that plugin's name, so /eco history shows lines like Shop took $ 500 from Steve.

Support

Ask on my Discord: https://discord.gg/nRjDw9k2vJ

License

MIT