GoldBank
GoldBank – Banks, ATMs, wallets, and more!
Development Status
I will no longer be releasing updates for this plugin. While GoldBank, being the second plugin I've ever made, holds a special place in my heart, it's time to move on. Because the truth is, it's a huge pile of messy, tangled code written by a developer just beginning to learn the ropes of Java and OO programming. I don't even remember writing a lot of the code still in the latest version, and it may hold nasty bugs that I'm not even aware of. Since I don't plan to release any further updates (well... I might release a 3.0.2 that's been sitting on Github for a while, but then that's it for real), I strongly advise against using it and instead opting for a cleaner and better-maintained economy plugin. With that being said, so long and thanks for all the fish!
Overview
I've never really seen the point of virtual economies. I prefer an economy with tangible items. So, I created this plugin. It's essentially the basis for a gold-based economy system. The basic function is the ability to create GoldBank signs, which players can then buy/claim to put their gold in. Once a week, they will receive interest. Additionally, admins can create ATM signs, which allow players to access their bank signs remotely. And furthermore, players and admins may create personalized shops which other players may use to buy and sell items. If you need to expand your inventory, this plugin can do that for you. Just craft a wallet (made with leather in a boat shape), and instantly you'll have a mini-inventory within your regular one (inventory-ception?). But be careful, because if you drop it, another player can steal it from you! Mobs have a nasty habit of losing their wallets, and will often drop gold nuggets when killed. If a player is lucky, they might receive something with a bit more value than mere nuggets.
Features
- Creates and registers a virtual inventory to a [GoldBank] sign when a player right clicks it.
- Automatically distributes interest between inventories weekly
- Signs are automatically protected from access and destruction by other players, pistons, creepers, and TNT
- Specify tiers of signs with different fees and sizes (Define fees and sizes in the config, and define tiers on the second line of each [GoldBank] sign
- Create a master sign, which everyone may claim, by setting the last line as "Master"
- Admins can create [GoldATM] signs, which allow players to access their gold inventory remotely, for a configurable fee
- Mobs drop a random number of gold nuggets, the maximum being a number defined in the config
- Mobs may drop rare golden items at a configurable rate
- Players and admins can create shop signs, which other players may buy from and sell to (see below for sign syntax)
- Players can craft wallets (crafted with leather in a boat or minecart shape), which act as portable virtual inventories
- Type "/gb reload" to reload the plugin
- Full UUID support. Note: this means that the plugin connects to Mojang's UUID API.
Bank Signs
Creation
To create a GoldBank as an admin, simply create a sign resembling this:
———————
[GoldBank]
Tier 1
(blank)
(Master)
———————
The first line is static, the second controls the tier (defined in the config), the third is blank, and the fourth, if set to "Master", will allow everyone to register and access their bank account through it, but will not change its text. A regular sign will only allow one player to register through it.
Registration
To register a bank with a GoldBank sign, a player need only right-click it. If a fee is set for the given bank tier, the player will be required to pay that fee in golden ingots in order to register.
Access
To access a GoldBank, right-click the sign to open its virtual inventory. Once the player is finished editing, the inventory will be automagically saved to disk.
Destruction
To unregister a GoldBank, a player must left-click it. This will cause the sign to revert back to an unregistered state (assuming if it is not a Master sign), and its inventory to spill onto the floor in front of the player.
ATM Signs
Usage
ATM signs are a powerful tool which allow players to access their GoldBank account from anywhere on the map. When a player right-clicks one, their bank account will open, and they are free to edit it as long as they'd like. If a fee is defined in the config for ATM signs, the player will be required to hold a sufficient amount of gold in their inventory for the sign to charge in order to use it.
Creation
Creation of ATM signs couldn't be simpler! Just create a sign and type "[GoldATM]" as the top line (case-insensitive).
Shop Signs
If AngryNerd1 creates this sign:
———————
[Diamond]
1;4
1;2
(blank)
———————
the plugin will replace it with this sign:
———————
[Diamond]
Buy 1 for 4g
Sell 1 for 2g
AngryNerd1
———————
To create an admin (infinite) sign, simply replace the last line with "Admin", and it will convert to "Admin"
Note: All lines are case-insensitive, spaces may be used in place of underscores, and the item ID may be used in placed of the item name. Additionally, shops which sell the buyer's head can be created, using PlayerHead as the item name.
Wallets
GoldBank has a wallet feature, where players may craft wallets to carry with them. They allow players to store anything, or just gold, if the server owner desires.
Creation
To create a wallet, place 5 leather in the shape of a boat in a crafting table. A wallet will appear in the result slot with the player's name branded on it.
Usage
To use a wallet, a player must place it in their hand and right-click. A virtual inventory with a config-defined number of slots will be opened, and they are free to edit it. If the config allows for it, they may add any item they wish. If not, they will be limited to forms of gold (gold tools excluded). When they are done editing, they may hit the escape key to resume gameplay.
Commands
- /gb reload - Reloads the plugin
- /gb view {player} - Opens a specified player's GoldBank inventory. Note that, if the player argument is missing, it will open the player's own GoldBank inventory.
- /wire [player] [amount] - Transfers a specified amount of gold in nuggets from your GoldBank to a specified player's. A fee may apply, which is set in the config.
Changelog
Latest Version (3.0.1)
- Fix GoldBank hanging the main thread while doing UUID lookups
Version 3.0
- Convert plugin to use UUIDs in place of usernames
- Add code to convert existing data to use UUIDs
- Minor bug fixes
Click here to view the changelogs for all versions
To-do
- Make GoldShops more user-friendly (i.e. allow players to use aliases in place of the actual item name (and damage value))
Click here to view older items
Known Bugs
- Players in very rare cases receive change in the form of an ItemStack with strange properties when using blocks to buy from a sign with a different gold type defined. This ItemStack behaves very oddly, but is effectively the same as the ItemStack that should have been received, and can be manipulated into such
- Players in creative mode may put their wallet inside their wallet, effectively destroying it (though it may be spawned back in via command)
- The /gb wallet spawn command has no default group set, so it must be manually specified even for operators
Click here to view older items
Permissions
Note: Permissions will only work if you have version 1.4 or later of the plugin
Bleeding-edge Builds
Development builds of this project can be acquired at the provided continuous integration (Jenkins) server. These builds have not been approved by the BukkitDev staff. Use them at your own risk. Additionally, these builds often undergo little to no testing, so there is no guarantee they will function properly.
Plugin Metrics
This plugin collects anonymous usage statistics. Here's a list detailing data collected, and here's a graph of and link to them:
Source Code
Vídeo Tutorial em Português (Video Tutorial in Portuguese)
http://www.youtube.com/watch?v=36mH_i62Ghc
Logo by Zombiemold
Sponsor
Special thanks to HostHorde for supporting GoldBank! Make sure to check them out!
@Crappy14
It should already. If it doesn't for you, please create a ticket detailing the exact issue you're having when running it on Bukkit 1.6.2.
pls make it work with the version 1.6.2 of minecraft
@Karther77
You sound like you have some really good ideas for the plugin. However, I must ask that you create tickets for any bug reports or suggestions. It just helps me keep track of which issues are present, and what's been fixed. :D I'll get to work ASAP on the points you mentioned, though.
EDIT: Never mind, I can actually just create a ticket directly from the comment. Forgot about that.
Hello, When using Goldbank I created a wallet then when you open the wallet and place gold nugget or really anything in it all works well HOWEVER while in /gamemode 1 or (godmode), it also allows for you to shft-click on the wallet icon in your bars while wallet is open and it puts it inside itself. When you then close it POOF all is gone...? Any idea on a fix for this. Or maybe im doing something wrong but this seems like a bug. I know im in Gmode doing this but why would you ever want to put your wallet inside itself while in Gmode. I had done this accidently and lost my own wallet full of stuff..?
Also future ideas.: Any way to maybe add in instead of using gold nuggets as currency using emeralds instead.? Ths way I could choose what to use for the currency on server.? The reason I ask is emeralds are used soly for currency in MC and nuggets are used for several other things link making gold swords or ingots. Just an idea.. Apologies if this is already a option as I did not see it anywhere.
Great app though..loving it for my first economy app..
Forgot to add also to ask about this feature. When you place a sign for bank or other. You can right click to register it and then single left click to UN-register it. OFTEN to easy..On a bank sign 3 or any of them really, people will have full bank and then walk up and accidently single LEFT click and BAMMO all items all over ground.? Any way to make UN registering the sign a SHFT-CLICK option instead,?? making it less likely for a mistake to happen.?
In the future, maybe frameshop and worldguard (WG region rent/sale) support? thanks
I was originally using Craftconomy, but then found this plugin works great alongside EssentialsEco which is why we switched. No longer receiving the InventoryMoveItemEvent issue, just the "you don't have enough money for that" when buying even though the player has enough virtual money to purchase.
@DoctorFox
Your original comment mentioned the bug involving the InventoryMoveItemEvent. If you are still experiencing that problem, please file a ticket detailing the stack trace (error log) printed, and I'll see if I can fix it. I'm unable to reproduce it with the latest dev build, so it is possible that it's already unintentionally fixed. As for EssentialsEco incompatibility, I usually test the plugin alongside Essentials, and I've never experienced this before. However, I will look into it and see what I can do.
Hello, I am using your plugin alongside EssentialsEco and once implemented it states "you don't have enough money for that" when buying, even though a player has enough money to buy it. We are trying to use GoldBank for our PvE world while using virtual currency in our PvP world. Any help would be appreciated. Thank you.
@Puppier
Two Questions:
@monstercat101
I'm not entirely sure why this would happen, though I can say with some certainty that the problem is an incompatibility with Gringotts. I personally use GoldBank alongside EssentialsEco without this occurring. I'll look further into the issue, though. I would highly suggest you file a ticket for this so as to help me keep track of the issue.
@maartenmd
Please file a ticket detailing the exact stack traces so as to allow me to patch this. I'm unable to replicate the bug, but perhaps I can fix it anyway.
Tried to install this.. all i get when i restart my server is a lot of errors, and it doesnt stop. [SEVERE] could not pass event InventoryMoveItemEvent to GoldBank v2.5.1
I'm not using a lot of plugins at all. DynMap, worldguard and worldedit are the only ones.
Hi, I would like to use your plugin alongside Gringotts, however when I install this the economy is disabled? I am using essentials economy also, which works fine with Gringotts, but when I install GoldBank they are both disabled, balance is always displayed as 0. Is this normal?
@superawesomeness
Thanks for notifying me of this. I've just finished fixing all exploits I could find, and I'm about to upload a new build. For future reference, if you happen to find a bug or want to suggest a new feature, please file a ticket through the link in the top banner of this page.
I love this plugin, but after updating to v2.5 whenever I use a buy sign it allows me to get the item without taking my gold nuggets, allowing me to get infinity items without payment. Please fix this.
@aresvallis
If you're only using offline mode for LAN access, you can bypass the safeguard by downloading a bleeding-edge build from the Jenkins repository (link on the main page) and setting the server IP to localhost or 127.0.0.1. I'm sorry if this safeguard inconveniences or offends you; I just don't want to support cracked servers in any way.
@caseif
Since I updated my server and its plugins to work with Minecraft 1.5, this no-offline thing has also hit me. My server is offline because my configuration is meant to accommodate A.C.T.U.A.L. offline access in a LAN without an internet connection. To suddenly have a function that was relied upon to not work is off-putting, to say the least. I was going to ask for an exemption to LAN servers, but then I saw this reply and I have to say I resent being lumped in as a "cracked" server simply because I chose to use a functionality that is included in Minecraft servers specifically for the reason I'm using it. Thank you, but no. I'm going to be removing your plugin permanently and find a better alternative. My friends will have to get used to going without their shops and the economy system that we were developing in the meanwhile.
@Mr_Wired
I don't know those plugins, but I'm assuming they create shops similar to those of this plugin. If that's the case, they may conflict, but there shouldn't be any need for them anyway, as this plugin provides that functionality (see Shops Signs, above). As for cross-version compatibility, excluding 2.0.1 - 2.0.5 (no longer listed), all builds are compatible with all versions of CraftBukkit.
@Mr_Wired
If your offline server is because of BungeeCord, I'm adding support for that in the next update (support is already available in the bleeding-edge builds). If your server is just cracked, then no, you won't be able to use this.
Wow, doesn't work with offline servers? I've never had a plugin do that, even Mcmmo and a lot of other large plugins.
Does this work with the shopkeeper plugin and the SignShop plugin? Also, does the 1.5.1 patch work with the 1.5.2 version?