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 Jul 31, 2015@verreckdusau
Mir sind keine Performance Probleme bekannt. Selbst 100 oder mehr Shopkeepers sollten meines Erachtens kein Problem sein..
Wenn du Spigot benutzt, kannst du dir 'timings' erzeugen lassen. Wenn diese auf irgendwelche Probleme in Shopkeepers hinweisen, dann lass' es mich wissen.
-
View User Profile
-
Send Message
Posted Jul 31, 2015Hallo blablubbabc Mall eine Frage wird das für ein normaler guter server zu viel wenn man um die 50 biss 70 / /shopkeepers hat?` mfg
-
View User Profile
-
Send Message
Posted Jul 26, 2015blablubbbabc
I sent you an email :)
-
View User Profile
-
Send Message
Posted Jul 26, 2015@L0rdFlay
Okay thanks for letting me know. I posted this issue on the plugin's comment section, hopefully the author can fix it.
-
View User Profile
-
Send Message
Posted Jul 26, 2015@blablubbabc
So I figured out that the glowing effect causes the problem. There are no enchantments but the glowing effect like an enchanted item it has.
The Items are from ArchonCrates http://dev.bukkit.org/bukkit-plugins/archoncrates/
I removed the glowing effect and it seems to work. Thanks for your help :) Sorry for any mistakes. I'm not English :P
-
View User Profile
-
Send Message
Posted Jul 25, 2015@schmiddel89
This shows that shopkeepers is probably not preventing the trade (because we usually print debug output when we prevent the trade).. I will add even more debug output to the next version of shopkeepers, in case someone runs into similar problems in the future.
I will setup denizen later and try to reproduce and debug this issue myself. Hopefully I can find out what's going on this way.
@L0rdFlay
I don't think item lore is the issue here, but rather enchantments.
This looks like an issue with spigot when it tries to serialize (possibly invalid) item enchantments. Maybe try to find out which exact item is causing this issue and then how you created this item / the enchantments for this item, and if any plugin is invovled in creating or modifying this item. Once I have more info I can then look into reporting this to either the affected plugin dev or spigot.
-
View User Profile
-
Send Message
Posted Jul 25, 2015Got a problem. The villager should sell items with lore. But every time i reload the plugin or the server the villagers with the lore trades disappear and I am getting this error in the console.
http://pastebin.com/eKpdBRjg
I used the book villager and the other variants but it does only work with normal items. Hope you can do something to fix my problem :-)
-
View User Profile
-
Send Message
Posted Jul 25, 2015This shows me the debug..
16:40:21 [INFO] [Shopkeepers] Opening trading window... 16:40:21 [INFO] [Shopkeepers] trading window opened 16:40:22 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=3, slot id=9, slot type=CONTAINER, shift=false, left or right=left, action=PICKUP_ALL 16:40:23 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=0, slot id=0, slot type=CRAFTING, shift=false, left or right=left, action=PLACE_ALL 16:40:24 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=2, slot id=2, slot type=RESULT, shift=false, left or right=left, action=NOTHING 16:40:36 [INFO] [Shopkeepers] Saved shopkeeper data (5ms (Data packing: 0ms, Async IO: 5ms)) 16:40:52 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=0, slot id=0, slot type=CRAFTING, shift=false, left or right=left, action=PICKUP_ALL 16:40:53 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=13, slot id=19, slot type=CONTAINER, shift=false, left or right=left, action=PLACE_ALL 16:40:54 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=20, slot id=26, slot type=CONTAINER, shift=false, left or right=left, action=NOTHING 16:40:55 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=19, slot id=25, slot type=CONTAINER, shift=false, left or right=left, action=PICKUP_ALL 16:40:56 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=0, slot id=0, slot type=CRAFTING, shift=false, left or right=left, action=PLACE_ALL 16:40:57 [INFO] [Shopkeepers] Player Steffen_Stinson clicked: raw slot id=2, slot id=2, slot type=RESULT, shift=false, left or right=left, action=NOTHING
-
View User Profile
-
Send Message
Posted Jul 24, 2015@Misaka20002
If you should by chance find out which (multiverse-) setting is causing this issue, then please let me know.
-
View User Profile
-
Send Message
Posted Jul 24, 2015@blablubbabc
I think you are right.Fortunately I found a simple way to solve it:reload the shopkeepers after restarting server.Thanks for you help,again.
-
View User Profile
-
Send Message
Posted Jul 23, 2015@Morphan1
I only mentioned that because differing internal item data is the most common case why items, which seem to be the same, are not accepted by the trade.
The thing is shopkeepers is not comparing the items.
It should only use them (without any modification) to create minecraft merchant recipes from them. Those recipes are added to minecraft's merchant recipe list and from there on minecraft is handling the rest of the trading like normal, including the item comparison.
An unrelated note, in case you look through shopkeeper's source code:
We have an additional (optional, configurable) comparison which simply calls Bukkit's itemstack.isSimilar(otherItem), which internally compares the items the same way as minecraft does it (since MC 1.8). So this shouldn't be the problem here either.
This additional comparison is only in shopkeepers, because some people run this plugin on older versions of MC, which only compared the materials of items.
Do you know if the minecraft client is doing any item comparison (additionally to the server) before even sending the click events for the trading to the server? Currently I doubt so, but in case it does, and in case your hiding of the invisible lore is faulty somewhere, this might be another possible cause for this issue.
I highly doubt that this is actually the issue, but for debugging this case: Maybe you could add some setting to denizen to fully disable this 'hiding of invisible lore' feature. So @schmiddel89 could then check if the problem exists even if this feature is disabled.
My prefered guess would currently be that the invisible lore might be differing. Maybe you could add some debug output which prints this invisible lore in some visible form. This could then be used by @schmiddel89 to compare the invisible lore of the item he setup the trade with (and which were accepted by the merchant without problems) and the items he freshly got via the give command.
@schmiddel89, maybe you could also enable the debug mode of shopkeepers in the config. Maybe this prints any helpful information to the console when the trade fails.
Besides of that, I have no idea currently what else could be causing this.. Because, if all items have the same invisible lore and internal data, and if the client isn't in some way causing this issue, and if neither I nor you are missing anything here.., then the trading should work without problems.
-
View User Profile
-
Send Message
Posted Jul 23, 2015@blablubbabc
Hi, I'm the developer of Denizen in charge of the item ID code. I don't believe this is an issue with our plugin, as the system we use is extremely simple. Essentially, the item ID is stored in the lore of the item via a hash of the script name. The server sees it this way - with a simple line of lore. However, to prevent players from seeing an ugly empty line of lore, we use a system of intercepting outgoing packets from the server to change the items viewed.
The 'engrave' system you looked at is far outdated and unused, and is in no way related to this.
This is a wild guess, but perhaps your plugin has an issue with determining if the items are the same? The server itself should only ever see both items with a line of lore...
-
View User Profile
-
Send Message
Posted Jul 23, 2015@schmiddel89
The shown issue occurs if the required and offered items don't match.
Denizen seems to be adding invisible codes to the item lore. So even if the visible lore and displayname of the items seem to be the same, the items can still differ.
Maybe ask the denizen guys why the item you created the trade with (which works fine in the trade as you shown in the video) and the freshly created item from the give command are different.
Probably unrelated, but just for letting you know: In the past there was some issue with spigot not saving custom internal item data, not sure if this issue still exists.
I did a quick search through denizens code, and the only time they seem to add custom item data is if some feature called 'engrave' is active. Not sure if that means anything to you, but if your custom 'Bronze' item uses this feature then this might cause problems once the shops get reloaded.
However, this does not explain the behavior shown in your video, because the shop shouldn't get reloaded there..
-
View User Profile
-
Send Message
Posted Jul 23, 2015@blablubbabc
That told me someone from the denizen team:
[17:46] <T> the clicking issue could be him not passing valid information to the minecraft api [17:47] <T*> he may be relying on item ids, which are not required in MC
I tried to use custom item which I create with denizen.. I tried to put it into the villager menu... the id problem is fixed but know this problem appears
https://www.youtube.com/watch?v=d7sbolVsT3I&feature=youtu.be
-
View User Profile
-
Send Message
Posted Jul 22, 2015@Misaka20002
I am running multiverse core and shopkeepers together on my server as well without problems. So maybe it's some specific (world) setting that's causing issues then?
-
View User Profile
-
Send Message
Posted Jul 22, 2015@blablubbabc
Found it.MultiverseCore.I deleted this plugin then the problem disappeared.Hope you can fix it.
-
View User Profile
-
Send Message
Posted Jul 21, 2015@phoenixlzx
It seems that you were trying to setup a shop with custom head items. This is a known issue of spigot's item serialization (which shopkeeper uses for saving the trades). See this spigot ticket (it's marked as fixed, but apparently people are still having this issue).
-
View User Profile
-
Send Message
Posted Jul 21, 2015OK I get the error when stopping server and all shops lost.
http://paste.ubuntu.com/11917701/
Tend to stop it and update the plugin, but after this error I found the save.yml is empty and all my recent backups for it are empty.
I'm going to remove the plugin from my server, as it lost data the fifth time and can't be backuped on the fly.
I hope other servers would not run into this problem.
-
View User Profile
-
Send Message
Posted Jul 20, 2015@Misaka20002
Let me know once you found it, so I can check what the issue is.
-
View User Profile
-
Send Message
Posted Jul 20, 2015@blablubbabc
I run the shopkeeper on another server and it works well.It seems like some other plugins interfere with it.I will try to find out that plugin.Thanks for your help!