This plugin makes it possible to create an economy with Gold Nuggets as a currency. Selling and buying products was never so easy! And there is no necessary interaction by mods or admins. The plugin makes it easy to adapt prices, because it get the prices from an XML-file. (= real-time adjustments)
The plugin provides 3 new commands:
The command searches the selling and buying price of the product in a XML-file on the root of your server and displays it to the player.
The command first searches for the sellingprice of the product in the XML-file on the root of your server. After the price is found, it will multiply it by the amount that you are holding in your hands. The stack'll be removed, while the player gets GN for it.
This command was the most tricky one. First it looks if there is an item that is linked with an itemID in the xml file. Then it checks if you have enough GN in your inventory. When you have, it'll remove the neccesary GN. Else the buyingprocess'll be interrupted. Once the bill is payed, the player gets his stuff
This command looks up the ID of the item that you are holding. You can also find the ID's and damage on this site
For this command you have 4 arguments. First, you need to give the id and damage in this format: ID:Damage. the second argument is an chosen name for a certain item. For examle oak_planks. The third argument is the selling price and as last you have the buying price
I guess there'll still be some bugs, so let me know ;)
This can be done in Excel or whatever you want to use as XML-editor. Just use the following tags:
<itemlist> <item> <name></name> <id></id> <sellingprice></sellingprice> <buyingprice></buyingprice> </item> <item> <name></name> <id></id> <sellingprice></sellingprice> <buyingprice></buyingprice> </item> </itemlist>
THE XML-FILE SHOULD BE ON YOUR ROOT DIRECTORY OF YOUR SERVER AND BE NAMED pricelist.xml OTHERWISE YOU CAN READ THE PAD ON THE ERROR IN YOUR CONSOLE
Just contact me.