Thank you that was giving me a weird glitch where it would only work the second time I right clicked. i changed it to the following and it appears...
Absolutely Here is the function called from the event listener private void RecycleItem(final Material basematerial, final int basequantity,...
Yes all other tools and all armor works just fine but for some reason swords will not be removed and it will not give me my materials back. I have...
Now the sword Flickers away for just a moment but reappears right back in the inventory.Still fully damaged as if it should be broken.
Correct but i also tried using player.getItemInHand().setDurability(player.getItemInHand().getType().getMaxDurability()); Witch makes it so it...
Sorry tried that it also didn't work. is there perhaps a way to damage the item once i set it to 0 so it breaks naturally?
Thanks for the suggestion, I tried that and am still unable to remove the sword on a right click event. the strange thing is that it works for...
I have tried that using player.setItemInHand(null); and i still get the same result.
Okay, I'm working on a plugin that will allow you to uncraft an item when you right click a gold block. My problem is that...
Separate names with a comma.