Shopkeepers

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.
For those who are simply looking for a convenient way to modify the trades of vanilla villagers (as an alternative to using complex Minecraft commands), the plugin also includes a graphical editor for regular villagers and wandering traders.
Basic Features
- Easily create villager shopkeepers that trade the items you want them to trade.
- Admins shops with infinite supplies.
- Player shops which pull supplies from a chest.
- Different types of player shops: selling, buying, trading, and selling books.
- Various supported mob types to represent your shopkeeper, sign shops, and Citizens (NPC) shops.
- Editor for regular villagers and wandering traders.
- Many configuration options.
- Translatable messages.
- Open source (Source code on GitHub)
Supported server versions
Shopkeepers supports the latest versions of Bukkit / Spigot.
Note that this plugin is created to work with CraftBukkit (or alternatively Spigot). 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, Cauldron, etc.) will not work with this plugin.
Other CraftBukkit or Spigot derivatives/forks might work, but are not officially supported. So if you run into issues while using those, try to reproduce your issue on a fresh and up-to-date Spigot server first.
Getting started
All documentation can be found in the wiki:
- Downloads and changelogs for all files
- Installation
- Translations
- Configuration
- Permissions
- Creating shops
- Commands
- Frequently Asked Questions
Showcase
Admin shops:
Configure the trades via the in-game inventory menu:

Resulting trading menu:

Player shops (ex. selling items):
Fill the shop chest with supplies:

Configure the trades via the in-game inventory menu:

Resulting trading menu:

Video Tutorials
More video tutorials can be found in the wiki: https://github.com/Shopkeepers/Shopkeepers-Wiki/wiki/Video-Tutorials
Tutorial by Donnie, explaining the setup of the different shop types:
Tutorial by Fan Staaff showing the setup of the different shop types in detail:
Tutorial by LastKing2X,showing the setup of the different shop types:
Spanish tutorial by Ajneb97, also mentioning placeholder items and various config options:
Statistics
This plugin uses bStats to collect anonymous plugin usage statistics. This helps me to determine how many servers are using the plugin, which Minecraft versions it is used with the most, and to which degree the different features are used.
Here is a list of all currently tracked information:
- Common information: The number of servers using the plugin, the number of players on these servers, online mode, Minecraft version, plugin version, core count, system arch, operating system, server country, Java version.
- Shopkeepers specific information: Whether specific related plugins are used (Citizens, Towny, WorldGuard, Gringotts, other Vault economy plugins), number of shops, whether player shops are used, whether certain features are enabled in the config (ex. WorldGuard/Towny compatibility, Citizens shops, delayed saves, colored names, chest protection, removal of inactive shops, tax rate, strict item comparison, purchase logging, disabling of other villagers, ..), the number of worlds containing shops.
- All information can be publicly viewed here: https://bstats.org/plugin/bukkit/Shopkeepers/
If you want to disable bStats for all plugins on your server, edit the file plugins/bStats/config.yml, or alternatively disable it only for Shopkeepers by setting 'enable-metrics' to 'false' inside the Shopkeepers config.
Known potential issues
A list of known potential issues of the latest version of Shopkeepers can be found in the wiki: This documents differences between Minecraft/Spigot versions, and existing Minecraft/Spigot issues related to Shopkeepers.
If you run into an issue, check if this list already contains and maybe offers information on how to handle it.
Have issues or further questions?
If you have a pressing issue or simple question, you can join the discord server and ask other plugin users for help:
But submitting a ticket is the best way to get help or report a problem with the plugin.
Before submitting a ticket:
- Check if your question is already answered in:
- The documentation (wiki).
- The FAQ.
- The Known Issues.
- Check if there is already another ticket for your issue.
Before reporting an issue:
- Try to reproduce your issue when using:
- The latest versions of Spigot and Shopkeepers.
- No other plugins.
- No kinds of other server or client mods.
When reporting an issue:
- Provide the versions you are using of Minecraft, Spigot and Shopkeepers.
- Provide a detailed description of your problem and add as much information as possible which could help reproducing the issue.
- If possible, include step-by-step instructions on how to reproduce the issue on a fresh Spigot server.
Donations
If you like this plugin, consider supporting its developers by making a donation:
- To blablubbabc (current maintainer: Dec 2013 - today)
- To nisovin (former author: Aug 2012 - Dec 2013)
A big "thank you" to everybody who is keeping the motivation up through donations!
| Minecraft-Servers-Listing.com | TRS Game Servers | terminalserver.us |
| Minewind | mercurialmusic | timitimitimi |
| FatherWh0 (merchantvillages.com) | lukeeexd (tws-mc.com) | PapaJuan |
| EmeraldHaze (Ninjalette) | Espen | kbtalkin |
| Dimo (Beyond Vanilla) | RefugiaCraft | Frilioth |
| Tabletopcheese | Observant Minecraft Server | Ren B. |
| BadWolfMC | Michael M. | Alejandro A. |
| Michael B. |
Want to help?
Whether you are a programmer or not, there are many ways in which you can contribute! For example:
- Help users with issues and questions on Github, Discord, or the comment section.
- Create and update translations.
- Keep the documentation (the wiki) up-to-date with plugin updates.
- Write or maintain add-on plugins (see the open Github issues).
If you are interested or have other ideas on how you can contribute, feel free to contact me via PM.
Add-On Plugins
Sometimes, a feature is either to specific to include directly into the Shopkeepers plugin, or I did not yet have the time to add something similar myself. You can find a list of both official and third-party add-on plugins that extend the functionality of the Shopkeepers plugin in the wiki: https://github.com/Shopkeepers/Shopkeepers-Wiki/wiki/Add-On-Plugins
If you have also written an add-on plugin that you want to add to the list, let me know!

-
View User Profile
-
Send Message
Posted May 5, 2014Sorry for all the posting... I got deep enough to find NMSHandler, seems like it would be possible to extend loadItemAttributesFromString and saveItemAttributesToString to save and load the entire tag tree in a backward-compatible way. I think- eh?
Well I will be quiet for a bit and let you mull it over.... I'm excited because I think either way this is very doable, and I'm willing to do the work if you want :)
The other option that would seem to fit well would be to plug in to AdminShopKeeper.saveItemStack/loadItemStack and call out to any registered ItemProviders like I suggested in my last post.
Either way would make our plugins work together, I think (yay)- so it's up to you (if you want to do either, of course!). If your plugin motivates me to transition to a physical economy, I'll have to invite you to come check it out :)
Out of curiosity - the Bukkit ItemStack serialization takes care of enchantments, right? I have to admit I've never dealt with attribute modifiers before, I had to look it up- some kind of hidden attributes Bukkit doesn't store?
Well thanks for listening to my ramblings, anyway!
-
View User Profile
-
Send Message
Posted May 5, 2014@blablubbabc
I have the same thoughts- but the "dummy" item idea doesn't solve the issue of player inventories getting messed with- I'm going to install Shopkeepers now and play with it myself.
I'd love to go with option#2, and if you're willing I could take a stab at it and make a pull request. I would use reflection and no external dependencies, and generally only well-known (non-obfuscated) methods are needed for NBT interrogation like this.
That said, what I *really* want is for Bukkit to support this. Their ItemStacks are extremely rigid in what they will store and serialize- my hope is they'll be forced to change this approach come 1.8, when (I believe) custom items are going to be the norm. So another option is "wait and see", but at the rate we're going I'm not sure when we'll see a 1.8 Bukkit :)
EDIT: Well, I should've played with this myself more before coming to you, I've been working off server admin reports. In my own experimenting, I can't get the shopkeepers to do anything bad to my existing wands or inventory. Which is what I'd expect, given what you've told me.
Also as I'd expect, after saving + reloading, the Shopkeeper sells a broken wand. Enticingly, he works fine prior to reload- I guess he's still got a reference to the original item.
Well, at any rate, thinking about what may be the least invasive for your plugin, here's a suggestion:
- Add an ItemProvider interface, which has two methods:
String serialize(ItemStack item); ItemStack deserialize(String data);
Both methods should return null if the provider doesn't handle the item type, or can't decode the string data.
If my plugin could register such an ItemProvider, and then get called anytime you save or load an item... I think that could work?
Alternately, saving the NBT data is an approach, but that does seem hacky and if you're not using NMS already I don't want to force you into that ugliness.
-
View User Profile
-
Send Message
Posted May 5, 2014@NathanWolf
Well, I am trying to depend as less as possible on non-bukkit stuff. Currently Shopkeepers uses bukkit's itemstack serialization + it attempts to store and restore item attributes (which seem to work). So if your wand items additionally have some other nbt data stored with them those get lost currently..
Possible solutions would be:
-
View User Profile
-
Send Message
Posted May 5, 2014@blablubbabc
Thank you for the response!
The problem is my wands are identified by custom NBT data- they are complex objects, and I can't encode all the data in lore (and find that to be a hacky approach anyway, IMO)
So I have two issues, both of which may be complex to resolve, but I'd love to help if I can...
1. Users have reported that having Shopkeepers and Magic installed "destroys" wands. This usually means the wand ItemStack has gotten replaced with a shallow copy (since Bukkit, and most plugins, don't copy all NBT data when they make a copy). Does Shopkeepers do anything with the player's inventory directly, like make a copy of the whole thing on an interaction? (I had this problem with dtlTraders)
2. Being able to sell wands in a shopkeeper would be awesome, but even more complex, assuming you have your own internal item storage. Maybe impossible if you don't, and it's the internal Bukkit code itself destroying wands when given to a villager (in which case the event you mentioned might help)
I haven't poked around in the code too much, but this is something I'd love to help with, or get your help with :) The idea of a physical economy with wands and spells is pretty appealing to me, but at the moment not a viable option- your plugin could change that.
-
View User Profile
-
Send Message
Posted May 5, 2014@TheCoolGuy123_5_Minecraft_
It's currently not very intuitive..: you have to click an item in your inventory (bottom) and then click the slot in the editor window (top), where you want to place it.
@NathanWolf
Well, if your plugin identifies 'custom wand items' purely by looking at the item (it's type, lore, attributes) then it should be no problem to sell them just like other items. So if that doesn't work you will have to provide me some insight in how your wands work / how your plugin detects them / what data it needs.
Also I probably could add some sort of PlayerTradeEvent or similar which you then can react to, analyize the traded item and then decide whether to handle it like some of your custom wand items or not.
@kollinkoko
I think you can toggle betweem the different shop types by holding the creation item in hand, sneaking and right/left clicking.
-
View User Profile
-
Send Message
Posted May 4, 2014How do I make a "special buying" shop?
-
View User Profile
-
Send Message
Posted May 3, 2014This plugin sounds awesome! I would love to integrate with it for selling custom wand items. This seems tricky though, our plugins are currently completely incompatible.
Is there any sort of developer API or should I just dive right into the source? I anticipate it will not be a simple problem (involving how you copy and save items), but even if I can't integrate if there's a way I could make them compatible (shopkeepers not breaking a players wand) that'd be awesome.
Thank you!
-
View User Profile
-
Send Message
Posted May 2, 2014For a player villager, that is a trade villager, how do you make it trade item for item? I can only set the first item (cost1) and that's it. What do I do?
-
View User Profile
-
Send Message
Posted Apr 30, 2014@blablubbabc
Essentials :o
-
View User Profile
-
Send Message
Posted Apr 30, 2014@KevinEssence
That message is not coming from Shopkeepers. Some other plugin must intercept the command..
-
View User Profile
-
Send Message
Posted Apr 29, 2014When I do /shopkeeper it tells me "Error: That warp does not exist"
-
View User Profile
-
Send Message
Posted Apr 29, 2014There is another dupe bug, how it worked for me: 32 emeralds for 1 tripwirehook I put in 36 emeralds and shiftclick the tripwirehook and it gives me around 25 stacks of tripwirehooks.
-
View User Profile
-
Send Message
Posted Apr 26, 2014@RandKStudios
Duplication bugs should have been fixed in the latest versions (though it is a bit tricky to actually test for this: at least I was not able to see any duplicate villagers since that update on my server).
Nevertheless there could still be duplicated villagers in your world from previous versions of Shopkeepers. So if those chunks load you see duplicated villagers.
But if it really has been fixed in the latest versions you should be able to kill those duplicates and then never see those duplicates again.. So check for that and let me know if if you still see new duplicates popping up.
If that should be the case then please create a ticket and attach a list of plugins you are running. But please first check if those duplicates are really fresh generated duplicates..
-
View User Profile
-
Send Message
Posted Apr 26, 2014At my server there is a duplication-bug so if i make a shopkeeper he will duplicate after a few days Please help me! (and sorry for my english i'm german)
-
View User Profile
-
Send Message
Posted Apr 23, 2014@RadicalG_MONEY
? You can setup trading shops: trade any item for any other item.
-
View User Profile
-
Send Message
Posted Apr 22, 2014@blablubbabc
Is there a setting so that any item (not predefined) can be used as the currency?
-
View User Profile
-
Send Message
Posted Apr 22, 2014@RadicalG_MONEY
What kind of setting are you missing?
@Synchlor
During my tests those fake items disappeared again shortly afterwards..
-
View User Profile
-
Send Message
Posted Apr 21, 2014I did reinstall bukkit and all my plugins and now it works! uff. but i still have Fake items, after a trade failed. sorry for my bad english
-
View User Profile
-
Send Message
Posted Apr 21, 2014Is there any way to make it so that any item can be used as the currency item?
-
View User Profile
-
Send Message
Posted Apr 21, 2014@blablubbabc
Thanks clicked on the wrong version :/ :D