Solved Color in Inventory Names Not Working

Discussion in 'Spigot Plugin Development' started by Zlaty, Jul 24, 2018.

  1. I've recently started updating my plugin to 1.13 from 1.12.2 and I noticed that my GUIs no longer have colored names in 1.13. I created a test plugin to see if this issue was only in my main plugin. I'm not sure if this is a bug or a new limitation that comes with 1.13. Here is my code:

    Main Class:
    Code (Java):
    public class Main extends JavaPlugin {
        public void onEnable() {
        this.getCommand("test").setExecutor(new TestCommand());
        public void onDisable() {
    Command Class:
    Code (Java):
    public class TestCommand implements CommandExecutor {

        public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {

            if (!(sender instanceof Player))
                return false;
            Player pSender = (Player) sender;
            Inventory i = Bukkit.createInventory(null, 9, ChatColor.AQUA + "Test Name");
            return true;
    Thanks for any help or info.
    #1 Zlaty, Jul 24, 2018
    Last edited: Jul 24, 2018
  2. I think this has been reported to Mojang, another user came here with the same issue.
    • Like Like x 1
  3. Maybe trying using this:
    Code (Text):
  4. I have tried almost every method I can think of for adding colors to a string. I've tested if it was working by sending the name of the inventory in a message and it appears to show color there, just not in the inventory itself.
  5. It’s been reported to mojang, no fix as of yet. Stop trying for now and leave the colours there as you normally would. It will work later on.
    • Like Like x 1