Gringotts
Gringotts: Item based currency.
Gringotts is an item-based economy (currency) plugin for the Bukkit Minecraft server platform. Unlike earlier economy plugins, all currency value and money transactions are based on actual items in Minecraft, per default emeralds. The goals are to add a greater level of immersion, a generally more Minecraft-like feeling, and in the case of a PvP environment, making the currency itself vulnerable to raiding.
Gringotts was originally created for the Minecraft Wars PvP/survival server.
Features
- Item-backed economy (configurable, default emeralds)
- multiple denominations with automatic conversion (for example, use emeralds and emerald blocks)
- Storage of currency in chests and other containers, player inventory and ender chests (configurable)
- direct account-to-account transfers commands
- optional transaction taxes
- fractional currency values (fixed decimal digits)
- Account support for Factions, Towny and WorldGuard
- Vault integration
Latest changes
To get notified of new versions, please subscribe to file updates.
v2.9
- DEPENDS ON JAVA 8. If your server is not on Java 8 yet, you should upgrade, or ask your service provider to upgrade. Java 7 isn't supported anymore by Oracle.
- Should now work both in regular as well as async context. This means there should be no more "Asynchronous entity world add" errors anymore, and Gringotts is now compatible with Towny in async mode, as well as other plugins that call economy methods asynchronously.
- The maximum virtual money allowed for an account is now equal to the lowest denomination, instead of the highest. I changed this because that behavior was causing lots of confusion.
- fixed other minor bugs
v2.8
- built for Minecraft 1.9 and Factions 2.8. May not be compatible with older Factions versions!
- unsupported versions of Factions should be handled more gracefully now.
- updated to current version of Metrics-Lite. Fixes annoying error messages.
v2.7
- Named denominations: Each denomination can now have its own name, which will be shown in /balance messages and the like. To activate this feature, use the
named-denominationsconfig setting. By default this will use the denomination's displayname or regular item name, but you can define a custom name as well. See configuration instructions for details. - Balance messages can now be configured to show only regular balance or also vault/inventory balances.
- Now also supports
&prefix to color codes in messages and item displayname/lore in addition to the default§prefix. - can now also used Vault-supported item names in denomination config, not only regular Bukkit names. This can make the config a bit more intuitive. (requires Vault)
- lore config for denomination items now also allows a simple string instead of a string list.
- configuration should now always be loaded as UTF8.
- fixed an issue with
/moneycommands failing on some servers.
v2.6
- adds display name and lore support for currency items. See configuration instructions on how to configure this. Note you will need a third-party plugin to rename items not created by Gringotts. Thanks to dj5566 for contributing this feature!
startingbalanceconfig option works again
Planned Features
See: Gringotts open enhancement issues on GitHub. You're welcome to vote on enhancements important to you, but I might not have the time to implement them.
Instructions
Wiki
Check out the Gringotts Wiki for more hints and a troubleshooting guide.
Installation and Configuration
Download Gringotts and place it in your craftbukkit/plugins folder.
Please see the Configuration and Permissions document on how to configure Gringotts.
Usage
For full information on configuration and usage in Gringotts v2.x, please see the configuration page and the usage page respectively.
Storing money in an account requires a Gringotts vault. A vault consists of a container, which can be either chest, dispenser or furnace, and a sign above declaring it as a vault. A player or faction may claim any number of vaults. Vaults are not protected from access through other players. If you would like them to be, you may use additional plugins such as LWC or WorldGuard.
Player vaults
Place a sign above a container block, with [vault] written on the first line. If it was created correctly, the sign will display your name on the third line and you will receive a message that the vault has been created.
Faction vaults
Place a sign above a container block, with [faction vault] written on the first line. If it was created correctly, the sign will display your faction's tag on the third line and you will receive a message that the vault has been created.
Towny vaults
- To make a vault for your town: place a sign above a container block, with
[town vault]written on the first line. - To make a vault for your nation: place a sign above a container block, with
[nation vault]written on the first line. If it was created correctly, the sign will display your town's or nation's tag on the third line and you will receive a message that the vault has been created.
User commands
/money
Display your account's current balance.
/money pay <amount> <player>
Pay an amount to a player. The transaction will only succeed if your account has at least the given amount plus any taxes that apply, and the receiving account has enough capacity for the amount.
/money withdraw <amount>
/money deposit <amount>
Withdraw an amount from vault storage into inventory, or deposit from inventory to a vault.
Admin commands
/moneyadmin b <account>
Get the balance of a player's account.
/moneyadmin add <amount> <account>
Add an amount of money to a player's account.
/moneyadmin rm <amount>
Remove an amount of money from a player's account.
/gringotts reload
Reload Gringotts config.yml and apply any changed settings.
Need Help?
- First, check the Wiki.
- For support requests, feature requests and bug reports, please open a ticket.
- Drop by the Gitter channel and talk to me (jastice), and I will drop by.
- When your issue is resolved, update the wiki troubleshooting page!
Also, follow me on twitter: @ebenwert
Source and Continuous Integration
Gringotts is open source. View, fork and edit on Github
CI Status:
Current Development builds
Automatic Release builds
CI Builds have not been review by BukkitDev staff. Install at your own risk, just like anything else from the internet.
-
View User Profile
-
Send Message
Posted Jun 26, 2013@Q2Lummox
Ah, I'm not up to date with Factions development. I'll check if there are any incompatibilities.
-
View User Profile
-
Send Message
Posted Jun 25, 2013@ebenwert
Gotcha!
Still, every plugin is different. Most still use the '&' and it works, and some use the '§' which only works for that plugin. § and & both work for Phatlootz last time I checked... I blame MineCraft :S lol
BUT! with this, and Phatloots, if you use the § symbol for colors I get a white  in front of the words that get colored.
-
View User Profile
-
Send Message
Posted Jun 25, 2013When I try to use the command "/f money d 100" in the plugin "Factions", I do not recognize the physical money create with "Gringotts" while if I disable your plugin and use the economy of the plugin "Essentials" works perfectly .
You can check that your plugin does not works with "Factions 2.0"?.
A greeting.
=========================================================
-
View User Profile
-
Send Message
Posted Jun 25, 2013@LastTulare
Color codes in Minecraft are prefixed with a § sign
-
View User Profile
-
Send Message
Posted Jun 25, 2013@ebenwert
lol That was the first thing I have done after installing the Beta and testing messages :P They still show up white but with a '&2' in front of each line.
Is it & or is it §? Thanks for your quick reply too
-
View User Profile
-
Send Message
Posted Jun 23, 2013@LastTulare
Full message customization including colors/format are supported in the beta version: Just edit the messages.yml in your gringotts folder.
-
View User Profile
-
Send Message
Posted Jun 23, 2013Has anyone request color and format support for messages? I would like to request for color and format supported messages (:
Trapped chest support too! :D
-
View User Profile
-
Send Message
Posted Jun 21, 2013@BlueFusion95
Okay, I see. I'll be happy to add it to the to-do list, but I don't expect to ahve any time to devote to it anytime soon. If you do want to attempt to work on it, I'll try to help you out with any questions you may have, though.
-
View User Profile
-
Send Message
Posted Jun 20, 2013@ebenwert
I would love to see this feature added. I would try and help, but my java knowledge is not advanced enough to be able to comprehend other people's code (while I can make my own). Furthermore, I cannot see how difficult it would be to add. Basically all it would require is that data be stored into a database (which seems easier than storing in physical chests), then, "onInventoryOpenEvent", it checks if the chest is a vault, then if it is, it reads from the database, does some math to determine how many stacks/pages, and displays it to the player using "Bukkit.createInventory." Then, when players interact with the stored emeralds, it will remove/add value to the database, and if they click the "next page" button, it will close the current inventory and open a new one with the amount of emeralds for that page.
Sorry if I am being harsh, but I feel this is a really cool feature and a lot of servers, along with my own, will benefit from this awesome GUI as well as the decreased lag during transactions.
Thanks for your consideration,
- Blue
-
View User Profile
-
Send Message
Posted Jun 19, 2013@ColonelJdog
Your enderchest should then be automatically used as a vault - you don't have to create it.
-
View User Profile
-
Send Message
Posted Jun 19, 2013I'm trying to create a vault using an enderchest; however, its not working. Vaults for regular chests are working though. I have the gringotts.usevault.enderchest set.
-
View User Profile
-
Send Message
Posted Jun 18, 2013@Yupie123
Gringotts works fine with any regular shop system (such as ChestShop) and item based shop system (eg Shopkeepers)
-
View User Profile
-
Send Message
Posted Jun 18, 2013I love it! But the only thing that seems to be missing is a shop system, as I was about to use sponge as my currency so that nobody can really get it in vanilla survival. People would have to sell items to a shop (Perhaps a sign?) to get this currency, a sign sample could be this:
<BLANK> <Amount of items to be bought/sold (ie: "B 1" = Buy 1) > <Price for the items (ie: "5" = 5 sponge)> <Item to be sold/bought)
A player has to have the amount of sponge in his inventory for the transaction to succeed.
-
View User Profile
-
Send Message
Posted Jun 16, 2013@xc7xnjmc
If you place the sign above the chest instead of on it, the plugins should cooperate fine.
-
View User Profile
-
Send Message
Posted Jun 16, 2013can you please make it compatible with lockette because i keep trying to make a vault and it keeps making the chest private
-
View User Profile
-
Send Message
Posted Jun 15, 2013@ebenwert
Just implement the currency based denominations, actualy all denominations is based on single name currency.
I just want when i add multiple denomations, it is associated whit the good name currency i have make ^^
-
View User Profile
-
Send Message
Posted Jun 15, 2013@BlueFusion95
Hey, thanks for the suggestion. It would be a neat feature, but essentially not much different than storing stuff in enderchests, aside from the offline avaiability. I do have optional virtual currency storage planned, but I probably won't implement an interface for that that goes beyond /withdraw and /deposit
-
View User Profile
-
Send Message
Posted Jun 15, 2013@Nymphx76
Would you like to have actual multiple separate currencies, or just be able to display a currency value in form of its denominations? If you mean the latter, I might implement it.
-
View User Profile
-
Send Message
Posted Jun 15, 2013Hi !
Possible to make multiple currency ?
Iron, Gold, Diamond etc...
Example, i want to buy enchanted book, the price is 10 irons, 5 golds, 2 diamonds and 1 emerald.
In short, make multiple name currency associated whit specific item denominations.
-
View User Profile
-
Send Message
Posted Jun 14, 2013@ebenwert
I have an idea that might help fix the issue of scanning through chests, but it somewhat removes a core aspect of this plugin. Therefore, it would probably need to be something toggle-able.
Basically the way it would function is having a single "vault" that, when opened, opens a new custom player inventory such as this picture: https://dl.dropboxusercontent.com/u/38557600/2013-06-12_18.54.05.png
The first 5 rows would be slots for emerald storage, and the bottom slot would be unused (end portal blocks are placeholders) with the two redstone torches able to flip between pages of your vault. Basically it is like a super-chest that contains all of your emeralds, with multiple pages of storage. The best part about this setup is that the amount of emeralds you have are stored inside the database, instead of needing to scan through multiple chests each time.
I understand this removes the core feature of having the items "tangible" and "raidable," but this seems like a great way to eliminate the lag issues.
Furthermore, the end portal blocks and redstone torches would likely not be the actual blocks you use, they were just for example.