So, I have a big problem now. I just replace a dye in player's inventory with a new dye, BUT with different color, for example from cyan to gray. My plugin changes dye to another perfectly. But when I move it to my hotbar, I can't drop it and when I click on it in my inventory, it suddenly disappears. So I suppose it does not exist then. So my question is, how can I change the color of this item? Screenshots: Before After I moved it to hotbar - a second before it disappeared (because I didn't click on it ) Code: Code:java Dye dye = new Dye();dye.setColor(DyeColor.RED); ItemStack dye4 = dye.toItemStack(); dye4.setAmount(1);dye.setColor(DyeColor.ORANGE); ItemStack dye3 = dye.toItemStack(); dye4.setAmount(1);dye.setColor(DyeColor.PURPLE); ItemStack dye2 = dye.toItemStack(); dye4.setAmount(1);dye.setColor(DyeColor.CYAN); ItemStack dye1 = dye.toItemStack(); dye4.setAmount(1);dye.setColor(DyeColor.GRAY); ItemStack dye0 = dye.toItemStack(); ArrayList<ItemStack> dyes = new ArrayList<ItemStack>(Arrays.asList( dye0, dye1, dye2, dye3, dye4));p.getOpenInventory().getTopInventory().setItem(1, dyes.get(0)); PS: anyway, why does this happens for me? I don't understand This example doesn't work with dyes, but with glass (for example) it does Okay, I made a plugin with this error, so you can see what I'm doing and what it does: Main class (not compiled): https://raw.githubusercontent.com/PDKnight/pdknight.github.io/master/bukkit-error-plugin/awd.java The plugin: https://www.dropbox.com/s/763mim1jhliypin/AWD.jar?dl=0 Please, help me with that EDIT by Moderator: merged posts, please use the edit button instead of double posting.