maybe you're trying to sell an item that has enchantments or a custom name? the plugin perceives unenchanted and enchanted items as different even if the item itself is the same. If the item was added to the list of sellable items without enchantments, you wouldn't be able to sell an enchanted...
WARNING! Please backup buyList.yml, sellList.yml and customItemNames.yml from the plugin's data folder before installing this update.
NOTE! Starting with version 2.0.0 the plugin depends on DbLib.
- Added support for items with enchantments, custom names and lores
- Temporary discounts, which...
Hey everyone! Version 2.0.0 is soon to be released, with the support for enchantments, custom names & lores, discounts that expire after a set time and a revamped interface. Everyone is invited to test the new version before it gets released: https://discord.gg/QUg5vyN
Please note that...
- Fixed the bug which allowed to receive free money by selecting an item to sell and dropping it during transition between windows;
- Added Chinese translation (thanks to Anders233).
Use "Custom item names" function, it was designed specifically for this. The items themselves won't have custom names (like the ones you can set using an anvil), items will only appear under different names in the shop.
First of all, don't need to call setResponce(). Secondly, you don't add the elements you created to your windows. It must be:
ServerList = new FormWindowSimple(...);
ServerList.addButton(new ElementButton("text"));
// add other buttons
p.getPlayer().showFormWindow(ServerList);
You should get all of the enchantments applied to the item, iterate over them and check if there is a Silk Touch enchantment among them. To do so, compare each enchanment's ID to the ID of Silk Touch. It should look a little something like this:
for (Enchantment e : item.getEnchantments()) {...
Look up item's IDs on the internet and insert them into the "Add item" window. Different kinds of wool and glass have different IDs. You can use both string IDs and number IDs.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.