About Bank System
Enhance your server's economy with a comprehensive banking system! Players can manage their finances through ATMs, transfer money, and even earn interest. Fully customizable and integrable with other economy plugins.
Features
- ATM system: Players can install their own ATMs and receive profit from them.
- ATMs can break and be repaired.
- Money transfer system between players.
- Support for HumanNPC.
- Ability for players to earn money.
- Adds banknotes as a new item to the game.
- Auto Wipe options for each item.
- Works with third-party economy plugins (optional).
- Conversion from ServerRewards and Economics.
Commands
- bank - open the bank interface
- bank.givenote [target] [amount] - give banknotes to the player
- bank.giveatm [target] - give ATM to the player
- bank.setbalance [target] - set balance for the player
- bank.deposit [target] - deposit money to the player
- bank.withdraw [target] - withdraw money from a player
- bank.transfer [player] [target] - transfer money from a player to another player
- bank.wipe [type] (0 - all, 1 - players, 2 - logs, 3 - ATMs) - wipe data
- bank.convert.economics - convert from Economics
- bank.convert.serverrewards - convert from ServerRewards
Hooks and API
The plugin provides several hooks and API methods for developers to integrate with other plugins or custom scripts.
Hooks:
private object CanPlayerCreateCard(BasePlayer player)
private void OnPlayerCreatedCard(BasePlayer player)
private void OnBalanceChanged(ulong member, int amount)
API Methods:
private bool HasCard(BasePlayer player)
private bool HasCard(ulong member)
private int Balance(BasePlayer player)
private int Balance(ulong member)
private bool Deposit(BasePlayer player, int amount)
private bool Deposit(string member, int amount)
private bool Deposit(ulong member, int amount)
private bool Withdraw(BasePlayer player, int amount)
private bool Withdraw(string member, int amount)
private bool Withdraw(ulong member, int amount)
private bool Transfer(BasePlayer member, BasePlayer target, int amount)
private bool Transfer(string member, string target, int amount)
private bool Transfer(ulong member, ulong target, int amount)
Permissions
- Permissions can be configured in the plugin's config file. For example:
"Permission (example: banksystem.use)": "banksystem.use",
- Additionally, you can set permissions for ATM breakage percentages.
FAQ
Q: Where can I see an example of a config?
A: Config
Q: How do I spawn an ATM at a monument using BankSystem and MonumentAddons?
A: Follow these steps to auto-spawn an ATM at your monuments:
-
Go to a Monument:
Position yourself at a monument where you want the ATM to appear (e.g., near a vending machine location). -
Spawn a Vending Machine:
Run the following command to spawn a vending machine using MonumentAddons:
/maspawn vendingmachine.deployed
-
Convert It to an ATM:
Immediately change the vending machine’s skin to the ATM design by running:
/maskin 2551771822
Confirm that2551771822
matches the ATM skin ID configured in your BankSystem settings.
Your ATM is now installed at the monument and will automatically respawn during wipes or map changes.
Q: How do I fix RUSTNote stack splitting issues?
A: You need to find "Enable item split control? (if there are errors with stack plugins - it is worth turning off)" in the config and set it to false.