No trade with a shopkeeper
Gartentrulla opened this issue · 9 comments
Preliminaries:
- **Shopkeepers version:2.7.2
<Insert Shopkeepers version>
- **Spigot version:1.14.4
<Insert output of /version command>
Please can you update shopkeepers for the new spigot Version 1.14.4.
There are no errors, but it dosn't work. Not for user, owner and with op.
Thank you and sorry my english, I'm german
Can you clarify the issue you are having? What exactly "isn't working"? What are you trying to do, what steps are you performing, what do you expect to happen and what happens instead?
Also check your server's startup log to look for any errors.
I just tested Shopkeepers v2.7.2 on the very latest version of Spigot 1.14.4 (This server is running CraftBukkit version git-Spigot-798ea6a-2012f1e (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)), and I am not encountering any issues.
So if the issue is with the trading: Can you enable the 'debug mode' in the config and then try the trade again? Maybe it prints something useful to the config.
Also try a trade with regular items (items without any special item data).
If nothing helps, try without other plugins on the server. For example, setup a fresh local server for testing and only install shopkeepers.
My guess is that it's either something related to the item you are trying to trade, or some plugin compatibility issue.
The given log mentions that the items required by and passed to the trade are not matching.
Can you attach your config settings for those enchanted items? And also provide instructions how I can create those enchanted items you are passing to the trade?
Maybe also create and upload a WorldEdit schematic containing a chest with this enchanted item.
Like I said, the issue is likely with those items you were using. If you were to post how you created those items / how I can create those items on my test server, I can see what is wrong with them. If you created those items with a plugin, it's likely an issue of that plugin. Otherwise it's either an issue with the command you used (if you created them via the minecraft command), or a Spigot issue (if the server doesn't persist the item's data throughout its interactions with the item).
Actions like interacting with the item, moving it around in the inventory, saving and loading it inside a shopkeeper can all modify the item if it is not in a 'normalized' form.
I just tried the following: Written some text into a book-and-quill book, signed it, renamed a blue dye to "Textmarke" in the anvil and enchanted it via the enchantment book from the creative menu with Protection IV. Then setup a trade: The signed book being sold for the custom blue dye. And that seems to work fine for me.
- Are you using some command or plugin to create that enchantment book for Protection I, or to enchant the item?
- Not exactly sure which plugin you used for the naming. This (quite outdated) one?: https://dev.bukkit.org/projects/lores . If you rename the item in a regular anvil, does it work then?
Since it now works for you for some reason, it is probably no longer possible to reliable reproduce the issue and check if some of those actions make it work. So I will close this issue. If the issue occurs again, try to reproduce it with as few plugins involved to rule out those being the issue.