I'm having issues, i'm trying to get the wool color in a chest. This code return me WHITE event if the color is BLACK: Code: item = chest.getInventory().getItem(i); if( item.getType() == Material.WOOL ) { MaterialData data = item.getData(); if (data instanceof Wool) { Wool wool = (Wool)data; seller.sendMessage("You have a " + wool.getColor() + " wool!"); } } Maybe I miss something but i don't find how to solve this. Tank you for you help
http://javadoc.lukegb.com/Bukkit/dc/d58/classorg_1_1bukkit_1_1material_1_1Wool.html and http://javadoc.lukegb.com/Bukkit/d7...bukkit.html#a41bc97fee620bc476a97d4f428ceb486 I think it's not a material data but a DyeColor
Yes (but i only tested purple, brown and green wool) , i'll use "(byte)item.getDurability();" for now it work ^^