Bank [ 1.21 ]

Plugins Bank [ 1.21 ]

Version: 5.1.2-RELEASE
- Amounts can now be typed in short form: 150K = 150,000, 1.1k = 1,100, 2M = 2,000,000, 1B = 1,000,000,000 (T for trillion too). Upper or lower case, decimals, commas like 1,500,000 and a $ in front all work.
- Works everywhere you type an amount: the deposit, withdraw and send boxes in the bank menu, the money and exp commands, pay, send, loans, cheques, and the admin money/exp and /bank eco commands.
- /bank money and /bank exp deposit and withdraw now tell you when an amount can't be read, instead of doing nothing.
- Admins can now add, subtract, set and check the bank money and exp of players who are offline: /bank admin money add|subtract|set|balance <player> <amount> and the same for /bank admin exp. If the player is on another server sharing the database, their account is left alone and you are told to try again once they log off.
- New /bank admin money set and /bank admin exp set commands (permissions bank.admin.money.set and bank.admin.exp.set).
- Player names in admin commands no longer need the exact capitals: admin money/exp, lock, lookup, open, reset and /bank eco set, give and take all find "steve" as well as "Steve".
- Fixed "deposit all" sometimes failing with "There was a problem depositing all your money" (console showed "Loan was not permitted!"). It hit players whose balance had a lot of decimal places. Deposits now work in whole cents.
- Deposit tax can no longer take a tiny bit more than the amount being deposited.
- Bank top placeholders and /bank top no longer get stuck showing old numbers. If they look frozen, check hiscores.yml has Money Enabled: true and Main: true, then set Cache Last: 0 once and restart to rebuild the list.
- Offline interest now counts towards the bank top list.
- %bank_baltop_N% now shows the same wallet + bank total as %bank_baltop_amount_N% and %bank_baltop_name_N% when /baltop is enabled.
- Losing items/money/exp on death now works without needing exp hiscores turned on.
Update bank info types to fix json saving issues
  • Like
Reactions: Devydtz
Improve saving concurrency

Improve citizens trait registration
Fix cheque items being removed from players if they are not the correct redeemer
Fix cheque listener not unregistering on reloads
Fix transaction database for some mysql users
Fix permissions check for /bank open
Fix errors on command: /bank admin debug item on 1.21+
THIS IS A MAJOR RELEASE PLEASE BACKUP DATA BEFORE UPDATING

Major internal changes have been made to add support for other database types.
This is not expected to break any functionality but make backups and report issues to the support discord.


Added mongodb database savetype (premium)
Added admin viewing player money/exp transaction in menu (premium)
Added player money/exp transaction history table in the database
Added hex chat color support

Mongodb savetypes require MongoDB Loader which can be downloaded from: https://dev.bukkit.org/projects/mongodb-loader
THIS IS A MAJOR RELEASE PLEASE BACKUP DATA BEFORE UPDATING

Major internal changes have been made to add support for other database types.
This is not expected to break any functionality but make backups and report issues to the support discord.


Added mongodb database savetype (premium)
Added admin viewing player money/exp transaction in menu (premium)
Added player money/exp transaction history table in the database
Added hex chat color support

Mongodb savetypes require MongoDB Loader which can be downloaded from: https://dev.bukkit.org/projects/mongodb-loader