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-denominations
config 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
/money
commands 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!
startingbalance
config 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.
@Aethios
It should work as with any other plugin. What is in your bPermissions config file?
How exactly do the permissions for this plugin work? I understand they are all enabled by default (except admin), but how do I disable them?
I am using bPermissions, and attempted to disable them by default for all permissions groups, but it didn't work.
@ebenwert
if you need a tester .... you have got a man
@mrelfire
For the time being, you may need to use something else. I plan on making a Forge-native version of Gringotts at some point though.
@ebenwert
should I forget your plugins ?
@Mortalsinn
Okay thanks, I'll have to look if I can reproduce this problem. Would you mind opening a ticket, so I don't forget? I'm currently rather busy.
@ebenwert
I'm using 1.5.2.
The balance is correct and the town doesn't actually fall. I did report this to the Towny Dev's and this is what they said:
"It's a towny message that is firing because towny cannot see the gringotts bank, because of how they do the town banks. Probably something gringotts can fix."
@mrelfire
Since the bug seems to be with how MCPC/ForgeBukkit implements the functions for taking or adding items from/to an inventory, BOSE would not be affected by this.
@ebenwert
I go back to bose economy, and it is working (except I lose the main concept of real money of your plugins) can this help you ?
@mrelfire
If the bug is not in Gringotts, there's not much I can do short of fixing it in mcpc or whereever, which I'm not familiar enough with at the moment.
@ebenwert
but can you bypass / correct the bug ?
@erdrickk
What version of Gringotts are you using? 1.5.1a had a serious bug with vaults in regard to Towny.
Is the actual balance display correct after the logout? Then it might be a bug with Towny.
Other than that, if you are using MCPC or such, I'm afraid that's a bug with the server.
@erdrickk
it is nearly the same with mcpc I have written a ticket with the same information => take a look
There's a weird bug with Towny and Gringotts. Not any server log errors mind you but when someone sets up a town, creates a town vault etc... puts the items in the vault and they /town to check their balance all is good BUT....if you log out and then log back in you get a towny message saying "not enough funds in bank blah blah town is going to fall"
The town never actually falls but that message freaks out a lot of the newer members on my server
Is this a bug with Your plugin or Towny?? Just want to see if this can be fixed
@blablubbabc
Are you sure it rounds up every time? Gringotts keeps track of the change that is too small for the currency items, and dispenses those on transaction when the change sums up to a whole item. See if the /balance is the expected amount after a transaction.
Hey, I have settup Gringotts ang give Gold nuggets a value of 0,11 and gold ingot at 1 .
An other plugin is selling something at amount 1 for 0.1 resulting somehow in the player getting an gold nugget even it's below the worth, leading to: a player get 1 gold nugget more, if he sells his items one by one, compared to a player who sells let's say 10 of this at once: 10*0.1 -> 1 -> gold ingot
Could there be an option so gringotts does not round up ?
@ebenwert
Its alright Quickshop is adding a whole prices only feature, so it won't need to be fixed on your end.
@rockon999
What version of Gringotts and Craftbukkit are you using, or are you using any other server software?
I'm using this with Essentials and Quickshops. My issue is if a player makes a dirt shop and sells the dirt for 0.5.. they can buy it for 0 emeralds and then sell it to the server for 1 emerald.. thus making an exploit.
@MJRamon
I suggest using a plugin that allows you to give items on first join, such as Essentials.
Gringotts also support a purely virtual starting balance: https://github.com/MinecraftWars/Gringotts/blob/master/doc/configuration.md#miscSee here