This plugin allows you to set up custom villager shopkeepers that sell exactly what you want them to sell and for what price. You can set up admin shops, which have infinite supply, and you can also set up player shops, which pull supply from a chest. It will also prevent any other trades with non-shopkeeper villagers if you want it to.
Installation and Configuration
Simply download the file and put it in your plugins folder. When the plugin first loads, it will create a config.yml file in the ShopKeepers folder. There are several configuration options you can customize. See the Configuration Options page for more information.
Note that this plugin is created to work with CraftBukkit. Bukkit does not have an API for some of the things necessary to make this plugin work. This means that other server software (Tekkit, Forge, etc) will not work with this plugin.
Create a Shopkeeper
To create an admin shopkeeper, just use the command /shopkeeper while looking at a block. A villager will be spawned at the block you are looking at.
To create a player shopkeeper, you will need a villager spawn egg (or whatever item is defined in the config file). You must not be in creative mode when creating a shopkeeper. First, you can right-click in air (not on a block) to cycle through the different shop types (normal, book, buying, and trading). You can also hold sneak while right-clicking to cycle through the shopkeeper types (villager, sign, and witch). Then, right click on a chest to select it, then right click on another block to place the shopkeeper at that location.
You can also create a player shopkeeper by using the /shopkeeper command while looking at a chest, but this only allows you to create a normal shopkeeper and will make the villager stand on top of the chest.
Every shopkeeper villager's AI will be overwritten so it doesn't wander away, and it is invulnerable to damage. It will also teleport back to its spawn location after a few seconds if it gets bumped out of place.
Setting Up Trades (Admin Shopkeepers)
To modify the villager's trades, right-click on him while sneaking. This will open a regular-looking chest inventory, but it has a couple special icons on the right.

Each column in the inventory represents a trade option. The top item is the first cost, the middle item is the second cost, and the bottom item is the item to sell. The top and bottom items are required, but the middle item (the second cost) is optional. You can simply drag your recipes into the inventory. You can input up to eight recipes on a shopkeeper.
Once you are done editing the trades, simply close the inventory window to save. Now just right click on the villager (or other shopkeeper type), and see the trades! It should work with any items, including enchanted items and written books.
To set the shop's name, click the anvil then type the name into the chat. You can cycle through the villager professions by clicking on the wool block. If you want to delete the shopkeeper, you can click on the fire (be careful, there is no undo!).
Setting Up Costs (Player Shopkeepers)
First, the player will need to place items they wish to sell in the chest. In order to sell written books you must use the special book shopkeeper (in this case, you must put the written books you want to sell in the chest, then stock it with book & quill items).

Then, right-click on the villager while sneaking. This will open up the shopkeeper editor. The top row will show the various item types for sale from the chest. The bottom row will show the costs of those items. If no cost has been specified yet, there will be a slimeball. To modify the cost, left-click the emerald (or slimeball) to increase the cost, and right-click to decrease the cost. You can also hold shift while clicking to modify the cost by 10 at a time. You can adjust the item quantity in the same way, with left and right clicks.

Once the costs are all set up, click the emerald block to save. You can also click the wool block to cycle through the villager professions, and click the fire to delete the shopkeeper.
When a player purchases an item from a player shopkeeper, the item in the chest will be removed and the emeralds used to purchase will be added. Due to limitations in the game, the trades will not update even when a player purchases the final stack of a certain item. However, if a player attempts to make a purchase when the chest is out, the trade will fail and the trade inventory window will close automatically.
For the special "buying" shopkeepers, you must place at least one of each type of item you want to sell in the chest, as well as plenty of currency. Then when you open the editor interface, it works the same except the items are on bottom and the currency is on top. A buying shopkeeper can only buy basic items, not enchanted items, books, or maps.
Permissions
| Permission | Description | Default |
|---|---|---|
| shopkeeper.admin | Create and modify admin shops. | op-only |
| shopkeeper.bypass | Modify player shops that you do not own. | op-only |
| shopkeeper.reload | Use the /shopkeeper reload command. | op-only |
| shopkeeper.player.normal | Create normal player shops. | everyone |
| shopkeeper.player.book | Create book-selling player shops. | everyone |
| shopkeeper.player.buy | Create buying player shops. | everyone |
| shopkeeper.player.trade | Create item trading player shops. | everyone |
| shopkeeper.player | All player shops. | |
| shopkeeper.villager [1.12] | Create a villager shopkeeper. | everyone |
| shopkeeper.sign [1.12] | Create a sign shopkeeper. | everyone |
| shopkeeper.witch [1.12] | Create a witch shopkeeper. | everyone |
Video
A good tutorial provided by TrowbridgeHD/RyanDT13
Another video by elloc72zomb/elloc72
Frequently Asked Questions
Something's gone wrong! I have a problem! Will you please help me?
Submitting a ticket is the best way to get help or report a problem with the plugin. Please provide the version you are using of both Craftbukkit and Shopkeepers, and thoroughly describe the problem you are having, including step-by-step instructions on how to reproduce the problem.
My shop isn't working! Why can't I buy stuff from my shop?
You cannot buy items from your own player shop. This restriction is in place to help reduce duplication bugs if and when they arise. It doesn't completely prevent them, but it helps keep them from being obvious. As of v1.12, you can disable this feature in the config if you would like to.
Why don't colors seem to be working? They seem to turn into weird characters!
You should try setting your file-encoding option in the config file. Set it to "UTF-8".
Will you add support for currency plugins (integrate with Vault)?
No, sorry. The trade interface is really designed for item trades only. For example, the purchase item doesn't even show up until you've put in the item cost required. As an alternative, you could use another plugin to create some sort of bank, where you would buy and sell emeralds for virtual currency. In this way players could deposit and withdraw emeralds for shopping. You may also be interested in the plugin GoldIsMoney.
How can I get shopkeepers to spawn when WorldGuard blocks them?
WorldGuard has a configuration option to specify which mob types it blocks from spawning. The option is under mobs, called block-creature-spawn. If it is empty, you will need to add in all of the creature types you wish to block, making sure you leave out Villager. Another option is to set WorldGuard's block-plugin-spawning option (also under mobs) to false, but this may have other side effects.
Can I have more than eight trades on a shopkeeper?
I feel like eight trades is plenty to have on one shopkeeper, and that it would be best to set up multiple shopkeepers if you need to have more items for sale. However, if you insist, it is possible, just more work.
For player shopkeepers, it's actually fairly easy. The cost setup will show the first eight item types in the chest. So, just set up the costs for those items, then rearrange the items in the chest. You will then be able to set up the costs for the other items.
For admin shopkeepers, the only way is to modify the save.yml file and add the options manually. Please note that I do not support doing this. If you try to do this and mess up your save file, you'll have to fix it on your own. In my opinion, you shouldn't do this anyway. It is a lot more user-friendly to have multiple shopkeepers with various categories of items (probably indicated by nearby signs).
Can you instead just rebalance the regular villager trade options, or allow admins to configure what trades are possible with regular villagers?
There is another plugin that offers villager trade rebalancing as well as custom trade options, you can find it here: http://dev.bukkit.org/server-mods/rebalance-villagers/
Oh wise Nisovin, how can I create a successful economy?
I've actually put a bit of thought into this. You can read my opinions here.
Can I see the source code?
Certainly, here it is.
Recent Changes
Version 1.12
- Several config options have been added, changed, and deleted. See Configuration Options for more information.
- Added support for all items with meta information (fireworks, enchanted books, custom potions, etc). Renamed items and items with lore are also supported.
- Added tooltips for the editor window action buttons.
- Removed the "Save" action button (just close the editor window to save).
- Added the "Set Shop Name" action button, which allows you to set a shop's name. This sets the nameplate for the villager as well as the trade window text.
- Added the witch as a shopkeeper type.
- Shopkeeper creating has been unified. Right-click in air while holding the creation item (villager egg by default) to select the type of shop (normal, buy, trade). Hold sneak while you right-click in air to choose the shopkeeper type (villager, sign, witch). Then right-click on a chest then on a block as usual to place the shop.
Version 1.9
- Added delete-shopkeeper-on-break-chest option (this option is incompatible with the protect-chests option)
Version 1.8
- Multiple players can trade with a shopkeeper at the same time
- Sign shopkeepers added: right click a chest with an emerald in your hand, then right click a block to place the sign shop
- New Configuration Options added for sign shops (scroll down)
- Players can no longer buy items from their own shops
- Added enable-purchase-logging config option
- Fixed some bugs with shopkeepers disappearing or otherwise misbehaving
Facts
- Date created
- Aug 03, 2012
- Categories
- Last update
- May 03, 2013
- Development stage
- Release
- License
- GNU General Public License version 3 (GPLv3)
- Curse link
- Shopkeepers
- Downloads
- 51,566
- Recent files
- Reply
- #885
FakeTheRealHD May 22, 2013 at 09:33 UTC - 0 likesCould you tweak it so that "Shopkeepers" don't get killed in Mob-spawning deny areas?
- Reply
- #884
porthos203 May 20, 2013 at 05:43 UTC - 0 likesit do an erreur all time i create name or delete shopkeeper on 1.5.2 can you fix that or said if that no compatibility with some other plugin i dont no can some one help me plz and thank !!!
- Reply
- #883
porthos203 May 20, 2013 at 05:35 UTC - 0 likesthere have bug with name in version 1.5.2
- Reply
- #882
Mc2youth May 19, 2013 at 15:25 UTC - 0 likesI found bug, help me please... All my Shopkeepers have the essentials color code (&1 &2 &3 &4 &a &b .....) but when I restart my server, those color are disappeared. and show the name like ?1 ?2 ?3 ?4
Before Restart After Restart
- Reply
- #881
draccydragon May 19, 2013 at 14:59 UTC - 0 likes@Dawgzx: Go
I had this problem. Turned out it was an issue with a worldguard flag not permitting mobs to spawn in the region. Are you using worldguard?
- Reply
- #880
MasterMithrandir May 19, 2013 at 10:57 UTC - 0 likesAll my shopkeepers have suddenly dissapeared for no apparent reason, spawn verifier is also not working to prevent this...
The config file is allright, all shopkeepers are listed perfectly... any Idea why this may be happening?
- Reply
- #879
xlii1356 May 17, 2013 at 18:47 UTC - 0 likes@CraftingKevin: Go
If you just switch to survival mode, you do it the same way a player would, and just encase the chest in bedrock or something
- Reply
- #878
CraftingKevin May 17, 2013 at 14:37 UTC - 0 likesHow do I as admin create a witch shopkeeper?
One of The Crafting Dutchies, look for them on YT ;)
- Reply
- #877
xlii1356 May 17, 2013 at 03:52 UTC - 0 likesI am trying to set up a repair shops, but it seems that you cannot trade a damaged enchanted item unless it is the exact right amount damaged?
Example: I want players to be able to trade their damaged power 2 bow and a diamond for the same bow undamaged. But in practice, it will only accept undamaged items. Is there any way around this?
- Reply
- #876
aniadrift May 16, 2013 at 20:27 UTC - 0 likesRight now I can only create a witch shopkeeper for player shops. Is there a way to get a witch shopkeeper for administrator shops, or will you add a way in a future update?