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 Mar 1, 2015@PhanaticD
v1.47 for MC 1.6.2, 1.7.x, 1.8.x
-
View User Profile
-
Send Message
Posted Feb 28, 2015Hi, can you make it so when a shopkeeper is struck by lightning it doesnt turn into a witch? this can be made for unlimited witch drops if a player has access to /lightning
-
View User Profile
-
Send Message
Posted Feb 28, 2015@KhajiitV
For me this looks like you have not yet set up your shopkeeper. Read the descrition above on how to setup and edit the shopkeeper trades.
-
View User Profile
-
Send Message
Posted Feb 28, 2015http://prntscr.com/6b5yq7
What?? This looks NOTHING like what it said it does. Where is the villager plugin I was supposed to download?
EDIT: sorry im literally the stupidest person in the world lol
-
View User Profile
-
Send Message
Posted Feb 28, 2015@zto
The setup for the trading shopkeeper is not very intuitive:
You have to click an item in your inventory and then click the slot in the editor view where you want to insert it. Then you can increase and decrease it's amount there by left and right clicking it.
-
View User Profile
-
Send Message
Posted Feb 28, 2015don't know what fixed it but after multiple reloads and restarts it's working how it should. only issue now is the trade shops. i can put the items i want in the chest but i can't put a price into the shopkeeper inventory, it doesn't let me put anything in there.
-
View User Profile
-
Send Message
Posted Feb 26, 2015@guyag
The setLocation() might not properly work currently until the next reload, if you move the shopkeeper into a different chunk. Even more noticeable if you move it into a chunk far away.
@zto I tested it with only /shopkeeper while looking at a chest and it worked fine for me: it created the player shopkeeper, I was able to put items into the chest and in the editor view of the shopkeeper I was then able to modify the costs.
What do you see instead?
Regarding additional command parameters:
Shop and object type are optional. You can either specify nothing, then it might use the defaults, or your current selection. Or you specify the shop type, or you specify the object type, or you specify both.
The possible shop types are: 'normal' (alias 'sell'), 'buy', 'trade', 'book'.
The possible object (the object (ex. entity) representing the shopkeeper) types are: 'sign', 'citizen' (alias 'npc'), or the mob type name for every supported mob type.
-
View User Profile
-
Send Message
Posted Feb 26, 2015i've enabled it in the config but it's still having the same problem, it doesn't want to use the chest.
i think this is the problem for me: [shop type]
are the names different than what i think they should be? i tried a bunch of variations and all of them come back as "unknown shop object type"
-
View User Profile
-
Send Message
Posted Feb 24, 2015@blablubbabc
I've done something very similar - get all the shopkeepers in the chunk and match the UUID with the one I have stored. The setLocation() method seems to be working alright from my testing.
-
View User Profile
-
Send Message
Posted Feb 24, 2015@guyag
The setLocation() method seems to be not fully implemented yet.. and getShopkeeperByUUID seems to be missing as well.
For now you could store the shopkeepers chunk data and it's uuid (not entity uuid, but shopkeeper uuid), and then, on startup, use getShopkeepersInChunk(chunkdata) and search through that for a shopkeeper with the matching shopkeeper uuid and then remove and recreate the shopkeeper.
@zto
Make sure that 'create-player-shop-with-command' is enabled in the config.
-
View User Profile
-
Send Message
Posted Feb 24, 2015@blablubbabc
Interesting, thanks for the detailed explanation. What I'm trying to do here is move the villager to different places on server startup. Previously I was doing this by (trying to) despawn it on shutdown, and respawning it on startup. I seem to have overlooked the ShopKeeper.setPosition(Location) method though, which would be easier and much less roundabout... So now I'm storing the UUID myself and and trying to use the getShopkeeperByEntity method, but Chunk.getEntities() doesn't appear to include the villagers, which is where I'm now stuck.
-
View User Profile
-
Send Message
Posted Feb 24, 2015i'm having problems with the /shopkeeper command while looking at a chest. it creates a shopkeeper but i'm not able to use the chest for the shop. it uses their own inventory and the currency items don't increase when something is bought. i dont know if this is bugged or anything.
-
View User Profile
-
Send Message
Posted Feb 23, 2015@guyag
There seem to be multiple situations in which the shopkeeper entity can not be properly removed, but I can not completely remember the concrete situations anymore. Basically the issue sometimes occurs when:
Because of that the shopkeepers plugin does the following:
This really is a workaround.. and fails, for example, if the server crashes.
The alternative would be to do it similar to citizens: having our own entity classes (replacing the nms entity classes) and then being able to prevent that the entities are saved to the chunk data in the first place.
However that would require more updating-work and increase the amount of code which depends on nms-internals..
Nevertheless, I might switch to that approach in the future. I am still thinking about this.
Regarding your usecase:
I am not completely sure what you mean by 'control its position'. What exactly are you attempting to do? Maybe there is a way to achieve what you want without having to remove the shopkeeper on shutdown.
-
View User Profile
-
Send Message
Posted Feb 23, 2015Hi there, I'm attempting to hook into your plugin with my own. Basically I want to personally spawn the villager when the server starts up and delete it on shutdown, so I can control its position. On my plugin enable, I spawn a villager and store its reference - essentially the below.
On my plugin disable, I call pluginKeeper.delete(). However, it doesn't seem that the .delete() actually removes the villager, as when the server restarts there are two of the villager. Do you have any tips?
-
View User Profile
-
Send Message
Posted Feb 22, 2015@jessefjxm
Shopkeepers has configuration settings, to allow opening the shopkeeper shop regardless of other plugins blocking it.
But for not getting the WorldGuard message you might have to configure WorldGuard to allow the interaction..
-
View User Profile
-
Send Message
Posted Feb 22, 2015Meet a problem when using citizens shopkeeper with WorldGuard 6 installed. I've created a citizens shopkeeper and changed its type to sheep. But in default, worldguard will block the interaction with sheep npc, warning that "You can not use that here". Wondering if there's a way to fix this..
-
View User Profile
-
Send Message
Posted Feb 21, 2015@blablubbabc
I was just checking here first, in case it was something todo with the way the plugin was written.
-
View User Profile
-
Send Message
Posted Apr 27, 2015I know this is not neccesarily the right spot to ask about this, but I have been searching line by line in all the plugins to find a functionality that allows a player to trade and item to Rank Up. Does Shopkeepers have this ability or can it only be used items for items.
Trading an Item for /manpromote probably is not possible. I am trying to avoid an economy plugin but allow automatic ranking up?
Any thoughts?
-
View User Profile
-
Send Message
Posted Feb 20, 2015For anyone attempting to comment here:
You better post your comment on dev.bukkit.org intsead, because comments here generally don't get seen in time.
-
View User Profile
-
Send Message
Posted Feb 20, 2015@Lepoard200
Well, how this is a problem with shopkeepers then?