diff --git a/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsCreateSubCommand.java b/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsCreateSubCommand.java index 91fddde..d60a70f 100644 --- a/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsCreateSubCommand.java +++ b/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsCreateSubCommand.java @@ -34,7 +34,7 @@ public class NounsCreateSubCommand return true; } - String format = args[2]; + String format = ChatColor.translateAlternateColorCodes('&', args[2]); if(Cache.dbManager.addNewPronoun(pronoun, format)) { diff --git a/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsUpdateSubCmd.java b/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsUpdateSubCmd.java index b1f2a90..ca43f01 100644 --- a/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsUpdateSubCmd.java +++ b/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsUpdateSubCmd.java @@ -34,7 +34,7 @@ public class NounsUpdateSubCmd int pronounId = Cache.dbManager.getPronounId(pronoun); String oldFormat = Cache.dbManager.getPronounFormat(pronounId); - String newFormat = args[2]; + String newFormat = ChatColor.translateAlternateColorCodes('&', args[2]); if(Cache.dbManager.updatePronounFormat(pronounId, newFormat)) { sender.sendMessage("Format of pronoun " + pronoun + " updated from " + oldFormat + " to " + newFormat + "!");