Sign Bank
Sign Bank
Version 2.0.3 is out now!
(Download may be delayed due to approval time)
Dependencies [Vault]
Sign Bank is a Money and EXP Bank plug-in that allows you to store money/experience all fully automated through sign interaction.
Money Banks
The Money Bank system is all pretty straight forward, deposit money in, withdraw money out, interest is not implemented yet, but will be soon hopefully. To make a money bank, simply put, money bank on the first line of a sign, and it will auto create. Right clicking on the sign will access the bank and right clicks after that cycle through the Withdraw and Deposit. To withdraw/Deposit, simply enter the amount in chat and it will automatically make the transaction.
XP Banks
The Xp Bank system is a bit more complex than the Money Banks. To create, simply put, xp bank, on the first line of a sign and it will auto create. The Xp Bank system uses an algorithm to calculate exact amounts back and forth, mimicking Minecrafts actual Exp formulas so that very little(if any) exp is lost while depositing/withdrawing. The balance displayed on the sign for exp is total amount of exp as a value, not levels. Upon first accessing a Xp Bank, the Bank will inform you the max amount of levels you can withdraw from the bank at your current level. Be assured that virtually no exp is lost when using the bank but keep in mind that the Bank only works with depositing/withdrawing levels, not the exact amount of exp, because the amount of exp needed between levels fluxes, and my algorithm accounts for this. This is to avoid players from getting 10 levels, depositing, get 10 levels, depositing, etc etc get levels much easier and then just withdrawing the tons of levels.
ATM's
The ATM's are simply just signs that link to your money accounts, but only carry the Withdraw option. To create, simply put ATM on the first line of a sign, and the plugin will do the rest. These are more for random locations in your server for people to get money from the bank "On-The-Go". More of a real life simulation.
Current Features
- Configurable Interest System!
- Transfer System for money banks to wire money to other players Bank accounts!
- Auto currency name detection.
- "/" commands to check current interest and current money/xp in Bank account.
- Placing a sign with Money Bank on the first line will create a Money Bank and placing a sign with XP Bank on the first line will create an Xp Bank.
- Right-Clicking an unoccupied Bank will automatically turn on, and display your current Balance in the Bank.
- Right-Clicking once the Bank is open will cycle through the Withdrawal, Deposit, and Transfer options.
- Entering an amount into chat will automatically Withdraw/Deposit that amount from/to your Bank.
- If the Bank is already in-use, it will not allow another player to interact with the Bank.
- To leave a Bank, all you have to do is walk away and the Bank will automatically close for you!
- Bank Balance will automatically update upon making a Withdrawal/Deposit.
- Breaking a Bank Sign, will destroy the Bank.
- Permissions for creating/destroying Banks.
- Configurable Interest System.
- Configurable Max Amounts Features.
- /sb see <playername> to see how much players have in their Banks.
- Unlimited number of Banks!
Planned Features
- Code Cleanup.
ATM's
Money Transfer System.
Currency name detection.
Max Bank Amount.
- Possible Loan System.
- Suggestions from players.
Adding Permissions.
Adding Interest System for Money Banks.
Commands
- /sb interest - This displays information on the Interest. Next disbursal, interval, and amounts.
- /sb interest disburse - This command forces an automatic interest disbursal.
- /sb balance - This displays the users current balance in the bank, for both money and EXP.
- /sb see <PlayerName> - This displays the balance of the specified player. #Requires Permission
- /sb set <PlayerName> <Amount> - This sets the players balance to the amount. #Requires Permission
- /sb give <PlayerName> <Amount> - This gives amount to players account. #Requires Permission
- /sb take <PlayerName> <Amount> - This takes amount from players account. #Requires Permission
Change Log
Version 2.0.1: 12/6/2012
- Fix for decimalFormat Exceptions on xp Bank Depositing.
- Added another safety check for those not using logging and Log loading throwing Exception.
Version 2.0: 12/5/2012
- Full Code Rewrites to the File I/O and the Interest System. THIS WILL REQUIRE YOU TO REMAKE YOUR BANKS OR THE PLUGIN WILL BREAK!
Steps:
1. Turn off server.
2. Delete banks.yml
3. Start server with new SignBank.jar.
4. Remake Banks.
- FIXED! Interest System should now fully work in the sense of interest disbursion, max bank cap bypass, etc.
- ADDED! New Command! Players with the “sb.admin” permission can use the new “/sb interest disburse” command to force a bank disbursion immediately!
- FIXED! The long known PlayerMoveEvent Bug should now FINALLY be fixed, pending confirmation!
- More minor fixes, etc, can't think of them right now!
Version 1.7: 11/7/2012
- ADDED! Added 3 new commands. These commands allow you to “take”, “give”, and “set” money amounts directly to players accounts. The permission node to edit accounts is “sb.accounts.edit”.
- /sb set <PlayerName> <Amount> Sets the players balance to the amount.
- /sb give <PlayerName> <Amount> Gives amount to players account.
- /sb take <PlayerName> <Amount> Takes amount from players account.
- FIXED! Fixed the display for XP Banks, they no longer display Money Bank messages, but have their own display! Also adjusted some chat colors when using the /sb balance command, to make the values more apparent.
- FIXED! Hopefully fixed the issue with the max bank cap bypass not working properly and causing other issues to occur on rare occassion.
- ADDED! You can now Log all User transactions to a Logs.yml file. Toggleable through config. Default: true.
- CHANGE! Changed the permission node for bypassing max bank cap to “sb.account.bypass”.
- Updated to CB 1.4.2 - R 0.2.
Version 1.6: 8/7/2012
- Updated PlayerChatEvent to AsyncPlayerChatEvent.
- Updated all the exp algorithms to match the new internal experience algorithms for 1.3.1. This was not fun to convert!
- NOTE: EXP is not being reset for this and you may see a flux in your players exp from old algorithms to new. If you want to just start fresh, delete your xpAccounts.yml before starting your server back up.
- Added a check for NPE's being thrown for interest disbursion on start ups involving Null worlds.
- Fixed issue when Interest would disburse improperly for players with bypass node when the Server ran through multiple cycles without a restart.
- Updated to CB 1.3.1 - R 1.0.
Version 1.5: 7/5/2012
- Added a new bypass permission node for Max Bank Amounts.
- sb.bypass.maxbankamount
- Fixed a bug with the Interest System not respecting the Max Bank Amount values.
- Fixed a save bug with Max Bank Value not properly storing when SignBank loaded.
Version 1.4 : 6/6/2012
- Moved around some listener classes to better accommodate priority.
- Added in new classes to manage Plugin Hooks.
- Fixed any remaining bugs that should be stopping some servers signs' to not function properly.
Version 1.3.1 : 6/5/2012
- Latest Beta Build, to ensure all signs are functioning.
- Modified /sb to once again navigate a bit smoother to the help menu.
Version 1.3 : 6/4/2012
- *NEW* Added in a Max Bank Amount that can be configured in the config.yml. This will allow you to limit the amount a player can store in a Money Bank at any given time.
- *REMODELED* Completely redid the Interest System. Now the Interest System will better keep track of the last disbursion of interest and disburse accordingly. So now if you r server is restarted, or goes down for any reason, Sign Banks will take this into account and will disburse interest upon start up or wait the remaining time till next disburse, then continue on its normal timer.
- /sb interest will now also display the amount of time until the next interest disbursal.
- /sb see <playername> command is no longer case-sensitive.
- Added more precise coloring to some of the /sb commands.
- Updated to 1.2.5-R3.0
Version 1.2.2 : 5/12/2012
- Added command /sb ? to better help navigate the Sign Bank commands available to you.
- Added command /sb see <playername> . This command will allow players to see the amount of money a certain player has in the Bank. This command is cap sensitive. Defaults OP.
- Added permission node for using the new /sb see command.
- sb.see
Version 1.2.1 : 5/9/2012
- Fixed a bug where players could use colors to makeshift their own bank signs.
- Fixed a bug where opening banks of other types would cause the first sign to become frozen.
- Code cleanup as usual.
Version 1.2 : 4/28/2012
- *New* Added ATM Signs. Create them by simply writing ATM on the first line of a sign.
- Added permission nodes for using each type of Bank.
- sb.use.money
- sb.use.xp
- sb.use.atm
- Removed a few lingering debugging messages.
- Removed bug where XP Bank would show Transfer options.
- Code Clean Up as always.
Version 1.1.0: 4/5/2012
- *New* Added Transfer feature to the money banks. Typing in a players name followed by the amount will send that amount to that players bank! (Warning, this feature is cap sensitive)
- Added feature so your currency name will now be found and displayed via SignBank messages.
- Added "/" commands to check interest info and bank balances.
-/signbank will display Version and Author. =)
- /signbank interest will display interest percent and disbursion time.
- /signbank balance will display current money and max level withdrawl.
- Added "sb" alias to "/" commands.
- Adjusted interest control to better shut down when plugins are reloaded.
- Code Clean Up as always.
Permissions!
- sb.admin - This permission gives power to create and destroy Banks. Defaults Op
- sb.create - This permission gives power to create Banks. Defaults Op
- sb.use.money - This permission gives power to use Money Banks. Defaults Op
- sb.use.xp - This permission gives power to use Xp Banks. Defaults Op
- sb.use.atm - This permission gives power to use ATMs. Defaults Op
- sb.destroy - This permission gives power to destroy Banks. Defaults Op
- sb.see - This permission gives access to the /sb see command. Defaults Op
- sb.account.bypass - Bypass the Max Bank Cap Amount.
- sb.account.edit- This permission gives power to edit Bank Accounts. Defaults Op
Reporting Bugs/Issues
When Reporting An Issue, Please Do The Following
- Your Craftbukkit version.
- Current version of Sign Bank.
- Describe the exact situation in which the issue occured (listing all applicable info, names, what sign reads, etc etc)
- Copy/Paste the error from the Console Log.
Installation and Help
- Drop SignBank.jar into /plugins directory.
- Enjoy!
- Wiki Page Coming Soon!
Donations
Happy with my work? Want to help out? Want to encourage more Sign Based plugins?
Feel Free To Donate!
This plugin still works on 1.7.*. It has been running on my own servers for months. I have made many changes/improvements on the plugin, but it is still not stable enough for a release. When I have a stable version, I will upload it.
If you care to see the plugin functioning Live, check it out on my Economy Server here.
play.city-craft.net
[19:23:05 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'signbank' in plugin Sign Bank v2.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:932) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.lang.NullPointerException at com.brandenBoegh.SignBank.SignBankListener.getMaxLevel(SignBankListener.java:590) [?:?] at com.brandenBoegh.SignBank.SignBank.onCommand(SignBank.java:191) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [bukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] ... 13 more
Hello.
Need a feature to set a max xp level store and a permission to bypass this restriction. (vip user example)
How do I setup signs?
Every time I close the server it saves but when i reopen it the money bank, xp bank, or atm signs don't work. If I make a new sign that one works. PS I'm running cb 1.7.2
What exact command gets you admin rights to the bank ive tried /sb admin and it doesnt say anyehing /sb.admin says unwown command
@FabioZumbi12
If you actually read my comment, you would realize that players who do not have OLD configurations cannot use this plugin due to the plugin giving an error for new files. It will work fine for people who have been using it for a long time, but not for NEW users.
It has nothing to do with what version of Spigot or Bukkit or whatever you are running, it has to do with SignBank not properly creating the files it needs on a new installation.
@diannetea
This works fine in my Spigot and CB 1.7.2 servers. My only request is for onde translation, or if is possible to use a single file to make possible the translation! Waiting..
Thank you!
Yeah I'm using Spigot as well. I also consistently get that error. I "think" if you have a really old config it might still work, but unfortunately I think all of mine have hit the bin already and I don't feel like wasting the time to test that theory.
I also have no interest in a plugin that is horrifically broken and where the author makes no attempt to fix or even reply to concerns. I think once AllBanks updates it'll be a good replacement, for now it is broken on Spigot too, but the dev knows and is working on it.
I've tested this plugin on the latest build of Spigot and it is broken.
Your welcome to jump on our server. 67 Plugins and Sign Bank works. 1.72 and 1.74. We havent touched the config for close to 8 months. Hop on and shoot me a msg, i have no prob havin ya jump on our Teamspeak or just talkin over pm's on server with config and version we are using. Info is on banner.
@bullymays
Are you sure it's a real 1.7.2 and not just a protocol re-write? xD There was that awful "leak" for quite some time and many people claiming it was indeed a 1.7.2 when it really isn't.
As far as it running on a real 1.7 server, I can attest to it not doing so. My own server dropped CB late 1.7 snapshots for the new world and immediately picked up CB's Dev Builds in hopes this plugin would still atleast boot with it.
Sad to say that this was not the case in any way, and not to mention that this plugin has had errors since late 1.4's early 1.5's I was not in any way surprised. At the rate that this Dev reply's to the comments on this plugin or it's tickets, I would say it's safe to say this has been abandoned or the Dev just simply does not care (in which case still abandoned.)
Our server is 1.72 and this works just fine.
PLS , update this plugin , I need it
i hope this plugins is update. sorry for my bad english
@diannetea
I was sad to see that this plugin wouldn't run on 1.7.2, even despite the bugs it's had since 1.5.2 it was still a nice feature to have/use. I have switched to another banking plugin, which isn't as nice but it is able to do what we needed it to. :\
If you're seeking another plugin in this ones place, it wouldn't hurt to look into BankCraft? It was the only one I was able to find similar, and while it does have it's own bugs, and isn't as simple to use for players, it gets the job done.
When I tried it on a test 1.7.2 server it was completely broken won't even load, so looks like that's the end of this plugin
I think this plugin is broken. A lot of errors about not being able to read the log? >.<
Whenever somebody types in a number, it runs the command 5 times instead of one. I.E. Deposit 1 = Deposit 1 (x5) = 5
Please Update...