Description
Salesman
Introduction
Always wanted an easy and centralized way for your players to sell all their items? This is the plugin for you! Weather you have a RPG, Factions, minigames or just a regular survival server, you will find this plugin useful! This plugin ads a menu which you can open via /salesman, with a sign headed [salesman] and with any entity with the name configurable in the config (by default salesman), once you open this menu, you can place the stuff you want to sell in it and hit the green wool to confirm the sale.
Dependencies
This plugin needs 2 other plugins to work, which are generally allready in the server if you need this plugin.
Plugin 1: Vault
Plugin 2: Any economy plugin that supports vault (iconomy, essentials, boseconomy, mineconemy, etc)
Configuration
In order to be able to sell items you'll have to add them to the config, it is a pretty easy config and explained in the config itself.
Here is in short how to configure an item:
itemID: itemDamageValue: itemPrice
For example, this would be stone:
1: 0: <price>
If you do not define an item in the config and someone tries to sell it, it will simply not accept it and sell all the items but that one... it will return the item to the players inventory.
Configuring the name of an entity which opens up the sales menu:
salesmanname: <name of the salesman>
Defines the name of the entity, by default it is salesman, so if you would name an entity salesman and click it, it would open up the sales menu.
invrows: <number>
Defines the amount of rows you have to sell items in!
!! Do not put this higher than 8 !!
Permissions
salesman.command - grants access to the /salesman command to sell items. not needed if you are using signs/entities
salesman.createsign - grants the permission to create a sign headed [salesman] which can be used to open up the menu
Usage
Simply create a sign with [salesman] on top, name an entity(mob) like specified in the config, or let players do /salesman.
Bugs
This is a very young plugin, so there could be some bugs in there, I have yet to find one... but if you find one, please leave it in the comments of this page or add me on skype, my skype name is simgar98


![<p>You can place signs headed [salesman] to also open the GUI, you can color this with for example essentials, and it doesnt matter what you put on the 2nd, 3rd and 4th row.</p>](https://media.forgecdn.net/attachments/115/515/sign.png)
