Allow coloring pronoun formats
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bea 2022-10-24 23:02:18 +02:00
parent 5e94dace54
commit 27b1fabd72
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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 + "!");