Salesman
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
@NomicCraftMC
I'm sorry, I don't think I'll ever be updating this anymore. Actually, I dont know if Ill ever update any of my bukkit plugins, just because of the dmca stupidness... I'll wait for sponge or an alternative that works well to make plugins on, I don't think it's worth the effort for this if bukkit or spigot are never going to really update (I know about spigots patch system, I dont really see a future for that...)
That is, publically, if you need a plugin custom made you can allways add me on skype: simgar98
I donated $3.70 to you and said to look here. I know you don't have to update for these, but I really need a plugin like this and I hope the donation helps you decide on working on these requests. My requests for the plugin: special salesman with sign support, amount value for selling items in config as I explained below, and I don't want it but I found a guy that wan't multipliers via perms.
@NomicCraft
Done ^.^
Was allready concidering special salesmen, so you could let some sell other stuff than others.... MIGHT create that, having some problems with my videocard atm
Oh, and could you add a donation button to here please.
Sorry if I was spamming, I was in a rush with making my server, but thats no good reason. I suggest you add an amount into the config so you could sell a stack of dirt for $1 without having to go into decimals. Also, a way to have multiple salesmen with different configs. I know you don't use sign text but maybe you could have it as an option and so you would write [Salesman] on the top line, and a word defining the config to use the second line.
@Bumblebomb
ID: sub-ID: price
so it'd be:
265: 0: 78
so 1 iron ingot would be 78 "currency"
Sorry to disturb again. Have no idea on how to set-up what sells for what
265: 64: 5000 I tried to make a stack of 64 iron ingots sell for 5000 but it does not work.
@Bumblebomb
Don't use color codes, leave it out! You can name him externally from this plugin, this plugin ignores colors in names!
I have been having trouble with setting up the config Plz help Config: http://pastebin.com/x25zEVhN
@Incriptec
Have fun and good luck with your server! ^.^
Perfect man thanks :p
@NomicCraft
First he starts spamming me on forums.bukkit.org and now here :P Actually, the -1 idea is pretty good, MIGHT implement that.
Could you add an option in the config to allow for listing all damage values in one line. Example: Allows for selling all wool types for $100. wool: -1: 100 This would be way quicker than typing all the wool types out.