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 Binden |
Want to help?
The less I have to do myself, the more time I have to write plugins. Therefore I am looking for someone who would be willing to get involved in the project. That could for example mean:
- Keeping the documentation (the wiki) up-to-date with plugin updates.
- Improving the existing documentation.
- Creating and maintaining translations.
- Help managing issues and answering questions of users.
If you are a programmer with experience in writing bukkit plugins, or have ideas on how you can contribute to the project beyond that, let me know as well! If you are interested, feel free to contact me via PM.
Beyond that, everybody is invited to help others with issues and questions in the issue tracker, comment section, and the discord channel! Also consider contributing translations!
Third-Party Add-On Plugins
Sometimes a feature is either to specific to include it directly into the Shopkeepers plugin, or I did not yet have the time to add something similar myself. The plugins listed here extend the functionality of the Shopkeepers plugin.
These plugins are maintained by other community members. If you run into issues while using any of these add-ons, try to first reproduce your problem without any add-ons before you report it.
ShopkeepersNavAddon(abandoned): Adds inventory-based GUIs that allow you to browse all player shops, all admin shops, and to find shops that trade a specific type of item. You can teleport to a particular shopkeeper by clicking a button inside the GUI.
This plugin also integrates support for trading with Vault-based currency, but does so by replacing Shopkeepers' normal trade handling.
If you have also written an add-on plugin and want it listed here, let me know!
Hi nisovin,
this whole idea is totally awesome and I just saw your recent modifications on the source. Great! Keep it up.
Some thoughts/needs for our server:
Btw, how will/did you implement the player shopkeepers for buying items? Do our players need at least one of the item for setting up the costs? Would be a bit tricky on rare/enchanted items then.
I just wanted to say how much I enjoy using your plugins. MagicSpells and this are excellent ideas and well made! I would be happy to contribute to either of these in the future.
@Camonsters
How do you get books working on the dev build?
The dev build is amazing, and so far I've had no issues. If you don't mind, I'd like to make another feature suggestion. Buying shopkeepers should be able to automatically convert between high and low currency. Right now, shopkeepers that buy stuff don't seem to convert between the high and low. I have an item I'm buying for eight emeralds, and I put six emerald blocks and two emeralds in the chest, and the shopkeeper acted like I didn't have enough emeralds left, so the trade didn't appear.
The server I am on has been testing the dev build and so far I have to say it is amazing. I was a bit confused how to sell books at first but I figured it out eventually( I was confused by the blank books needed part. I put in multiple copies of my book. :P) I love this plug in and I can't thank you enough for it.
@CybrgDragon
thanks for your help :)
@simplimazing
To change to a different shopkeeper type, don't look at any block and use the shopkeeper command/right click a villager egg. This will cycle it through the three different shopkeeper types.
I tested out the dev build. Only feature I saw that worked was being able to place the villager away from the chest.
When using both Shopkeepers and default village trading together the shopkeepers multiply in towns. A newborn shopkeeper will wander like a default villager and it will offer the tradewares of its parent.
there should be a config for limit the numbers of villagers per player, i dont want to see 1000 villagers on my server and my players already have eggs cuz i have a plugin for capture mobs.
@nisovin
My opinion? They're all insanely sexy features. Good work. I'd really love for you to somehow add limits though! :)
Okay, I've been hard at work making new features to the plugin, but now I need some testers. If you're interested, read the Upcoming Changes section above.
I think this is my new favorite plugin. The admins on my server and I keep figuring out new ways that we can use this and it is AWESOME!!! Thank you SOOOOOO MUCH!!!
Bug: If someone is trading with it and then quit, the villagers will be blocked still.
@dotapurex1
@darrenstraight
@CybrgDragon
Are you guys stopping the server when you restart? This shouldn't occur if you stop the server properly.
The duplicate villagers are normal villagers, so on a restart there will be 2 normal villagers; no shopkeeper villager. A reload of the shopkeepers plugin brings a third villager back, who is a shopkeeper villager. The other 2 can just be killed.
In other feedback:
Is there a way to allow player shops to request items in exchange for emeralds, as opposed to just offering items in exchange for emeralds. I try to encourage shops owners to buy goods in order to keep their shops stocked, and to give players a way to earn currency in order to trade with; this is especially necessary with emeralds as the main way to gain them is through trade.
I tested this with another player, whilst I was configuring an admin shop i had a couple of occasions where clicking the emerald block to save the config did nothing, but allowed me to pick it up instead. The other player, however, apparently had a lot of trouble getting the interface to respond.
We currently use a sign-chest shop system, with iron, gold and diamond as currency. One player has set-up a currency exchange between these three items, and would like to set-up a shopkeeper to exchange them all into emeralds. This is probably going to be the main way we will transition over to emeralds and shopkeepers from our current system; this is just an example to reiterate the need to be able to offer emeralds in exchange for other items from a shopkeeper.
In your opinion piece for creating an economy you suggested offering villager eggs in exchange for emeralds, which is a good idea but I would like to be able to disable these eggs from spawning non-shopkeeper villagers. Could you add an option to do this?
As it is, needing to create the stacks in the number of items you wish to sell is a bit confusing to set-up. Instead, could you just dump all the items you wish to sell in the chest, then edit the number of each item available on the config screen just like you would the number of emeralds? That would be brilliant.
Thanks for making this, it really is an awesome plugins. Your in-game configuration system for shopkeepers is pretty great. Looking forward to seeing where you go with it ^_^
P.s. I am currently running 1.1, about to upgrade to 1.2; if any changes in the new version would affect anything I have discussed above.
I can confirm the villagers duplicating on restart.
Also, could you add an option to make it so that when players delete their shop, they get a villager egg back? And, is there a way to put shopkeepers in a different area from the chest? I know it's possible by editing save.yml file, but I was wondering if you'd implemented a way to do it in game.
@dotapurex1
Yes I have! I haven't tried V1.2 yet, any ideas if this fixes the issue? I originally thought it was because I was also blocking the killing of villagers but I have disabled that now so I don't think that's the case. The plugin just doesn't seem to recognise that there's already a villager set-up for it to use.
Other than that, brilliant plugin I must say as I wanted people to be able to sell their emeralds just not both buy and sell emeralds as per default NPC villager trading.
Has anyone noticed that there will be a duplicate villager after a restart of your server?
@nisovin
What about Playershops I mean? My players have made books they would love to sell