How I can remove a number of renamed Items with ANY name? With p.getInventory().removeItem(new ItemStack(Material.<Material>, <number>)); I only can remove items with the original name. plz help Its for a Shopping System with Clay bricks, iron ingots and gold ingots. Thanks in Advance
If you remove a Item with the p.getInventory().removeItem(item); method it doesn't work with renamed Items
It does, but not if you pass a new ItemStack as item. Because that new ItemStack you create doesn't have an ItemMeta or atleast no Displayname. You should loop through the inventory content, check if it has a display name and if it does remove that ItemStack, not a new one