Economy Bank

Economy Bank

21.6k Downloads

A simple economy bank system, that store data in MySQL Database or Flat File system. Banking transactions are made using signs, but also features admin commands to check/set other players accounts.

======> My plugins | My servers <======

Features

  • Premium UUID and Offline UUID support.
  • MySQL Database or Flat File Data Storage.
  • Supports any Economy system that works with Vault.
  • Uses TitleManager to add fancy action bar messages when doing banking transactions.
  • Sound effects when using the bank system.
  • Particle effects when creating bank signs.
  • Processed economy number display for easy reading ex: 1,000,1260.50
  • You can customize everything, chat prefix, messages, sign display.
  • Can work on the same database as our plugin MySQL Economy Bridge
  • Features interest options.

Dependencies

  • Vault - Download
  • Any Economy system compatible with Vault
  • (optional, only for 1.7 or 1.8 for action bar messages) TitleManager - Download
  • (optional, only needed for placeholders) PlaceholderAPI Download

Install instructions

  1. Place the plugin in the server plugins folder. Make sure you have an economy system installed and Vault, optional TitleManager on 1.7 or 1.8 servers.
  2. Start the server to generate the config, then stop the server.
  3. Open the config and configure the plugin.
  4. Start the Server. Done, enjoy.

Create Banking Signs

To create/remove signs you need permission: MysqlEconomyBank.admin

Balance signs:

Shows the current Player Balance

[Bank]
balance
empty
empty

Deposit signs:

Deposits <AMOUNT> money.

[Bank]
deposit
<AMOUNT>
empty

Withdraw signs:

Withdraws <AMOUNT> money.

[Bank]
withdraw
<AMOUNT>
empty

<AMOUNT> format example: 1000 | 20 | 20.5 | 20.25

Permissions

MysqlEconomyBank.use - Default true - Allows the use of banking signs.
MysqlEconomyBank.admin - Default to OP - Allows to create/remove banking signs and use admin commands.
MysqlEconomyBank.cmd.interest - Default to OP - Access to /bank interest command.

MysqlEconomyBank.cmd.balance - Default to OP - Access to /bank balance command.
MysqlEconomyBank.cmd.deposit - Default to OP - Access to /bank deposit command.
MysqlEconomyBank.cmd.withdraw - Default to OP - Access to /bank withdraw command.

Commands

/bank ; /bank help ; /meb ; /meb help - Will display the help page
/bank reload ; /meb reload - Reloads the config.yml file. Requires permission MysqlEconomyBank.admin

/bank balance ; /meb balance - Check your bank balance. Requires permission MysqlEconomyBank.cmd.balance
/bank withdraw <amount> ; /meb withdraw <amount> - Withdraw money from your bank. Requires permission MysqlEconomyBank.cmd.withdraw
/bank deposit <amount> ; /meb deposit <amount> - Deposit money to your bank. Requires permission MysqlEconomyBank.cmd.deposit
/bank balance <name> ; /meb balance <name> - Check a players bank balance. Requires permission MysqlEconomyBank.admin
/bank set <name> <amount> ; /meb set <name> <amount> - Set a players bank balance. Requires permission MysqlEconomyBank.admin

/bank deposit <amount> <name> ; /meb deposit <amount> <name> - Deposit money to a player account. Requires permission MysqlEconomyBank.admin
/bank withdraw <amount> <name> ; /meb withdraw <amount> <name> - Take money from a player account. Requires permission MysqlEconomyBank.admin
/bank interest ; /meb interest - Check countdown to next interest. Requires permission MysqlEconomyBank.cmd.interest

PlaceholdersAPI integrated placeholders:
%economybank_balance% - Returns the players bank account balance.

Other useful info

Banking signs interaction
Supports right and left click, and to prevent spamming a cooldown option that can be adjusted in the config.

Removing banking signs
To remove the bank signs you must crouch then left click the sign to destroy it and have the admin permission.

Interest
You can enable interest in the config file, by default is disabled. You can configure the interest amount and time. The interest will be given only to online players, so offline players won't get rich being inactive. Also this helps reducing the server load. The interest task is running on a separate thread so server performance will no be affected.

MySQL Data Storage
By default the plugin will use the FlatFile storage, so you need to go to config and enable it and set the database details. Note that you need to create the database then the plugin will create the tables when the server starts. The tables structure is the same as our plugin MySQL Economy Bridge so you can use them together. Example setup: We use MySQL Economy Bridge on all our mini games servers to create a single economy system, but on survival servers as we needed a local economy system we use this plugin and set to the same database so players can withdraw money earned playing mini games.

FlatFile Data Storage
A similar Flat File storage system like the popular Essentials plugin. The plugin will create a folder near the config file called Accounts, each player that has a bank account will have a file to store his bank balance.

Note!

It should work with any economy system that is compatible with Vault, it was tested with Essentials Economy and latest Vault and latest TitleManager plugin.

If you like this resource and want to say thank you with a donation please use this PayPal button. Thanks!

Donate

This plugin is made by CraftersLand Minecraft Community.

:) Feel free to check us out at: www.craftersland.net