Add support for MC 1.20.4. MC 1.20.3, which is mostly the same, is not officially supported. No new features or mobs. Experimental MC 1.21 mobs are not yet supported.
Add setting `citizen-npc-fluid-pushable` (default: `false`) to make all shopkeeper Citizens NPCs pushable by fluids (`true`), unpushable by fluids (`false`), or not modify their current behavior (`"undefined"`).
When set to `"undefined"`, the Citizens NPCs are not modified but retain their default or previously set fluid pushable behavior.
Unfortunately, the Citizens plugin has no in-game command yet to toggle the fluid pushable state of individual NPCs. But this is likely to be added in the future.
Shulker shopkeepers peek at nearby players now.
This behavior can be disabled with the setting `shulker-peek-if-player-nearby` (default: `true`).
The setting `shulker-peek-height` (default `0.3`) defines how much the shulker opens when it peeks.
Add: Support for setting up items that execute a command when being traded (either sold or bought).
Add: Command `/shopkeeper setTradedCommand <command>` (permission `shopkeeper.settradedcommand`, default `op`): Sets the command to execute when the held item is traded.
The command to execute is stored inside the item's data under the Bukkit key `shopkeepers:traded_command`.
When an item that has a traded command assigned is traded, the item is destroyed and the assigned command is executed as often as there are items in the item stack.
This feature is not meant to replace the requirement for custom third-party plugins or scripts in order to implement complex or custom behaviors. In order to reduce implementation and maintenance effort, only a single command can be assigned to an item and only a very limited set of placeholders is supported: `{player_name}`, `{player_uuid}`, `{player_displayname}`, `{shop_uuid}`.
If additional context information is required, e.g. about the shopkeeper's location or shop owner, a custom plugin that listens for the `ShopkeeperTradeEvent` might be better suited to implement the intended behavior.
This command deletes all shopkeepers and replaces them with corresponding vanilla villagers without AI that are configured very similar to villager shopkeepers.
This might for example be useful when migrating a world to vanilla Minecraft, e.g. when a server closes a world but wants to provide it as download to its players with all the shopkeepers included.
This command requires all of the following permissions: `shopkeeper.debug`, `shopkeeper.remove-all.player`, `shopkeeper.remove-all.admin`.
Add: "No shops were found" message to the "removeAll" command.
Fix: Moving shopkeepers did not update their location in the AI system, breaking gravity and AI activations when being moved out of their original chunk.
Fix: Verify that the Citizens API is still available before we try to use it. This guards against cases in which the Citizens plugin reports as "enabled", but the Citizens API is not in a properly initialized state. Reloading the Citizens plugin via PlugMan also seems to leave the Citizens API in an unusable state.
Fix: The check whether the cursor can hold the traded item was off by one, unnecessarily preventing trades in some cases.
Fix: Shopkeepers could no longer be moved after a recent change in the Paper server (PR 9937) to now also call the EntityTeleportEvent for plugin invoked teleports: All plugins that previously cancelled or modified entity teleports in certain cases (including the Shopkeepers plugin itself) can now accidentally cancel or modify plugin invoked entity teleports that were not supposed to be cancelled or modified previously. For now, we restore the previous behavior for all of our plugin triggered shopkeeper entity teleports by forcing these teleports, bypassing any cancellation and modification attempts of plugins.
API (breaking): Changes to the `ShopkeeperTradeEvent`.
The result item received by the trading player and the items received by the shopkeeper can now be altered via the `ShopkeeperTradeEvent` (`#get/setReceivedItem1/2`, `#get/setResultItem`).
Breaking: Plugins that use this event can no longer assume that the received items equal those of the trading recipe.
It is also possible to clear the received items. This might for example be useful when implementing items that apply alternative effects when traded (e.g. command items, or Vault integration).
Trade logging and trade notifications still log the original items of the trading recipe.
Some shopkeepers ignore changes to the received items in certain cases. For example, when removing items from a shop container or when adding or removing currency items to or from shop containers, the default shopkeepers will ignore any changes to the received items.
Since the received items can now be modified by plugins during the trade event, the event is called earlier now, prior to certain inventory related checks.
Breaking: Plugins can no longer assume that the trade will actually take place even if the trade event remains uncancelled.
Add a non-cancellable `ShopkeeperTradeCompletedEvent` that is called if the trade actually took place, after all trade effects have been applied.
Add `ShopkeeperTradeEvent#getTradeEffects` that allows custom `TradeEffect` instances to be added that are invoked when the trade is either aborted or completed.
This can be useful when implementing custom trade effects that are meant to only be executed once the trade is actually applied.
This might also be used for some of the built-in default trade effects in the future.
The plugin works good, but some reason whenever I exit the villager and stop modifying it, it's saves work fine, but then if I go back to it, they get wiped completely. I have no idea why this is happening.
Maybe there is some issue related to saving the shopkeeper trades to disk. Check your server log for errors. Also, the latest plugin version resolved an issue related to Paper. So if you are using Paper, try out Shopkeepers v2.17.2.
How do I change the color code name of a shopkeeper? For example, I wanted to make a shopkeeper called "&8Coal &7Miner" is there a way to do that? I've been wondering since I see it everywhere.
Change the icons of the sign type editor button of hanging sign shop objects from sign to hanging sign items.
Fix: Plugin not loading on server versions without MC 1.20 hanging sign materials: "The default value for property 'signType' is invalid: Unsupported hanging sign type: 'OAK'."
On those server versions, there is no valid default hanging sign type.
Disable the sign type validation on those server versions and adapt all code that previously expected the sign type to always provide valid hanging sign materials.
The hanging sign object type is now always disabled on server versions without MC 1.20 features.
Fix: Error "Invalid sign block face: DOWN" when trying to move a hanging sign shop object to the bottom of a block.
Limitation: Ceiling hanging signs always use the 'attached' state for now, instead of choosing this state dynamically based on the shape of the block above.
The sign text is now applied to both sides of shop signs, including sign posts, wall signs, hanging signs, and wall hanging signs.
Drop support for MC 1.18.1 and 1.19.1. These versions are only used by a few servers. Removing their support speeds up build times. MC 1.18.2 and 1.19.4 are still supported and can be updated to without issues.
Consider asking on Discord since this probably requires a bit of back and forth asking questions to figure out. Also, maybe one of the users there already knows this kind of issue.
All I can suggest right is to check the server log for any errors/warnings and to check if the Citizens plugin is correctly saving the NPC.
v2.16.4 for MC 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.17.1, 1.16.5
This update contains a critical fix. It is highly recommended that you update as soon as possible! I only list the primary changes here. For information on API changes, internal changes, and changes to the language files, you can find the complete changelog on Github: https://github.com/Shopkeepers/Shopkeepers/blob/master/CHANGELOG.md
Fix: Immediately end the UI session if the GUI is not successfully opened (e.g. if another plugin cancels the corresponding InventoryOpenEvent).
Fix: Item duplication related to shopkeeper GUIs being opened while another GUI is already open.
Fix: Update for the latest breaking changes in the Citizens API related to metadata strings. This version of Shopkeepers is only compatible with the latest development version of Citizens!
Fix: The villager editor did not correctly translate hex color codes of the form "򇨣Test".
API:
Fix: "Shopkeeper#setName" did not correctly translate hex color codes of the form "򇨣Test". The result used the alternative "&" color code instead of Minecraft's "§" code.
-
View User Profile
-
Send Message
Posted Dec 25, 2023v2.19.0 for MC 1.20.4, 1.20.2, 1.20.1, 1.19.4, 1.19.3, 1.19.2, 1.19, 1.18.2, 1.17.1, 1.16.5
I only list the primary changes here. For information on API changes, internal changes, and changes to the language files, you can find the complete changelog on Github: https://github.com/Shopkeepers/Shopkeepers/blob/master/CHANGELOG.md
Known potential issues: See here.
Donations
If you like this plugin, consider making a donation.
Thanks!
-
View User Profile
-
Send Message
Posted Oct 10, 2023v2.18.0 for MC 1.20.2, 1.20.1, 1.19.4, 1.19.3, 1.19.2, 1.19, 1.18.2, 1.17.1, 1.16.5
I only list the primary changes here. For information on API changes, internal changes, and changes to the language files, you can find the complete changelog on Github: https://github.com/Shopkeepers/Shopkeepers/blob/master/CHANGELOG.md
Known potential issues: See here.
Donations
If you like this plugin, consider making a donation.
Thanks!
-
View User Profile
-
Send Message
Posted Sep 17, 2023The plugin works good, but some reason whenever I exit the villager and stop modifying it, it's saves work fine, but then if I go back to it, they get wiped completely. I have no idea why this is happening.
-
View User Profile
-
Send Message
Posted Sep 18, 2023In reply to TeamDucks:
Maybe there is some issue related to saving the shopkeeper trades to disk. Check your server log for errors.
Also, the latest plugin version resolved an issue related to Paper. So if you are using Paper, try out Shopkeepers v2.17.2.
-
View User Profile
-
Send Message
Posted Aug 20, 2023Villagers won't look at the player at all, they're just standing completely still
Is there a way to get them to look at you normally? playing on 1.20.1
-
View User Profile
-
Send Message
Posted Aug 21, 2023In reply to curiousemo:
Update to Shopkeepers version 2.17.1.
-
View User Profile
-
Send Message
Posted Aug 11, 2023How i can make the Villager doesnt have unlimited stock? example: i want a trade can buy only one time and the others trades 5 or 6 times
-
View User Profile
-
Send Message
Posted Aug 12, 2023In reply to ankl115:
You can create a player shop instead of an admin shop. The stock inside the attached shop chest then limits how often the trades can be used.
-
View User Profile
-
Send Message
Posted Jul 22, 2023How do I change the color code name of a shopkeeper? For example, I wanted to make a shopkeeper called "&8Coal &7Miner" is there a way to do that? I've been wondering since I see it everywhere.
-
View User Profile
-
Send Message
Posted Jul 22, 2023In reply to aidaniscoool:
You can enable the use of color codes inside the config via "name-regex" setting: Set it to name-regex: "[A-Za-z0-9&§# ]{3,256}"
-
View User Profile
-
Send Message
Posted Jul 2, 2023How do i make an shopkeeper look like a player?
-
View User Profile
-
Send Message
Posted Jul 2, 2023In reply to kubixgames___:
See https://github.com/Shopkeepers/Shopkeepers-Wiki/wiki/Citizens-Shopkeepers
Once spawned, you can use the normal Citizens npc commands to change the mob type to 'player', set the skin, etc.
-
View User Profile
-
Send Message
Posted Jun 29, 2023v2.17.1 for MC 1.20.1, 1.19.4, 1.19.3, 1.19.2, 1.19, 1.18.2, 1.17.1, 1.16.5
I only list the primary changes here. For information on API changes, internal changes, and changes to the language files, you can find the complete changelog on Github: https://github.com/Shopkeepers/Shopkeepers/blob/master/CHANGELOG.md
Known potential issues: See here.
Donations
If you like this plugin, consider making a donation.
Thanks!
-
View User Profile
-
Send Message
Posted Jun 28, 2023First of all, I love this plugin so much! Thanks for all of the hard work on it!
My question is: how can we put heads on the shopkeepers? Unfortunately, putting a head with a dispenser will not work. Thanks!!
-
View User Profile
-
Send Message
Posted Jun 26, 2023v2.17.0 for MC 1.20.1, 1.19.4, 1.19.3, 1.19.2, 1.19, 1.18.2, 1.17.1, 1.16.5
I only list the primary changes here. For information on API changes, internal changes, and changes to the language files, you can find the complete changelog on Github: https://github.com/Shopkeepers/Shopkeepers/blob/master/CHANGELOG.md
Known potential issues: See here.
Donations
If you like this plugin, consider making a donation.
Thanks!
-
View User Profile
-
Send Message
Posted May 10, 2023Mobil uygun bir sürümüz var mı 1.19.80.02
-
View User Profile
-
Send Message
Posted Apr 26, 2023I have a problem with the disappearance of Shopkeeper Citizens!
-
View User Profile
-
Send Message
Posted Apr 26, 2023In reply to skors_saad:
Consider asking on Discord since this probably requires a bit of back and forth asking questions to figure out. Also, maybe one of the users there already knows this kind of issue.
All I can suggest right is to check the server log for any errors/warnings and to check if the Citizens plugin is correctly saving the NPC.
-
View User Profile
-
Send Message
Posted Mar 20, 2023v2.16.5 for MC 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.17.1, 1.16.5
I only list the primary changes here. For information on API changes, internal changes, and changes to the language files, you can find the complete changelog on Github: https://github.com/Shopkeepers/Shopkeepers/blob/master/CHANGELOG.md
Known potential issues: See here.
Donations
If you like this plugin, consider making a donation.
Thanks!
-
View User Profile
-
Send Message
Posted Jan 15, 2023v2.16.4 for MC 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.17.1, 1.16.5
This update contains a critical fix. It is highly recommended that you update as soon as possible!
I only list the primary changes here. For information on API changes, internal changes, and changes to the language files, you can find the complete changelog on Github: https://github.com/Shopkeepers/Shopkeepers/blob/master/CHANGELOG.md
API:
Known potential issues: See here.
Donations
If you like this plugin, consider making a donation.
Thanks!