GoldTradeSystem

STILL IN BETA, ALPHA VERY SOON

Intro

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)

Commands

The plugin provides 3 new commands:

  1. /pricecheck: This checks the price of the item you are currently holding in your hand.
  2. /sell: This sells the stack in your hand, and replaces it with gold nuggets.
  3. /buy: This command is used to buy items defined in the pricelist where the buyingprice is bigger then zero.
  4. /itemidcheck: This command checks the itemID of the item you are holding
  5. /addproduct: This command adds an item to your pricelist.xml

/pricecheck

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.

/sell

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.

/buy

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

/itemidcheck

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

/addproduct

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

Upcoming Features

  • /updateproduct, this should make it possible to change the prices ingame.
  • /removeproduct this should remove an item out of your pricelist.
  • Selling all the stacks of the current holding item (/sellall command)

Bugs

I guess there'll still be some bugs, so let me know ;)

XML-file/Price configuration

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

Questions/comments/ideas

Just contact me.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    59359
  • Created
    Jun 17, 2013
  • Last Released File
    Never
  • Total Downloads
    1,244
  • License

Categories

Members

Recent Files