****This plugin requires Vault.*********
Overview
I wrote this because I was looking for a mod that would allow players to sell items to the server without the hassle of learning slash commands or looking through a whole room to find the stall that is buying that specific item. What I came up with is a single sign, that when left clicked, will sell all items matching the one in your hand immediately. There is a second sign that, when clicked, reports how much the item is worth.Installation and Configuration:
The Installation has changed, but trust me... its for the better. Drop the ServerShop.jar and ServerShop folder inside your plugins directory. You may edit the database file inside the folder with any SQLite editor OR you may use the in game commands to change prices. To change a price, MAKE SURE YOU ARE AN OP, then type the following /servershop price [item number] [value]. Example: I want to change the price of cobblestone to be $1 each. I would type: /servershop price 4 1 . Alternatively, if you are holding the item in your hand, you may type /servershop this 4 1 . Setting the price of any item to zero will inform players that the item can not be sold to the server.To use the signs, a player must hold the item that they desire to sell in their hand and LEFT CLICK the Sell sign. This will total all matching items in the players inventory, sell them, and report the sales to the player. Left clicking on the PriceCheck sign will report the item value, the total number the player has, and the total value.
Sign syntax:
[ServerShop]PriceCheck
This sign will report prices
[ServerShop]
Sell
This sign sells your items to the server.
![](http://img338.imageshack.us/img338/8130/servershop1.jpg)
TO DO
Move the prices.txt to the ServerShop folder rather than the root of the plugins folder- Add permissions for sign use
- Add permissions for sign creation
add SQLite supportadd slash command for admins to change prices ingame- add slash command for price-checking from anywhere
- suppport extended data values (dyes, wool colors...)