Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by AvaterysPL, Sep 16, 2018.
You set the ItemStack’s item type to a material.book
And are trying to use enderchest meta, you should change it to an enderchest type or use bookMeta.
Or just use ItemMeta if you only need to set the display name/lore
Sent from my iPhone using Tapatalk
He's trying to say ChatColor.MAGIC isnt working.
Anyhow, besides that, I have not a clue why this happens.
It should work, can we see your Util.fixColor method? Perhaps there is something that replaces a color code or something, but I could be wrong.
What you want to use is ChatColor.translateAlternateColorCodes
I can see why you would think that at first glance but enderchest is only in the variable names. He is using regular itemmeta.
Close thanks for help
The only issue was that he wasn't setting the ItemMeta with ItemStack#setItemMeta(ItemMeta)..