Allow coloring pronoun formats
All checks were successful
continuous-integration/drone/push Build is passing

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; return true;
} }
String format = args[2]; String format = ChatColor.translateAlternateColorCodes('&', args[2]);
if(Cache.dbManager.addNewPronoun(pronoun, format)) { if(Cache.dbManager.addNewPronoun(pronoun, format)) {

View File

@ -34,7 +34,7 @@ public class NounsUpdateSubCmd
int pronounId = Cache.dbManager.getPronounId(pronoun); int pronounId = Cache.dbManager.getPronounId(pronoun);
String oldFormat = Cache.dbManager.getPronounFormat(pronounId); String oldFormat = Cache.dbManager.getPronounFormat(pronounId);
String newFormat = args[2]; String newFormat = ChatColor.translateAlternateColorCodes('&', args[2]);
if(Cache.dbManager.updatePronounFormat(pronounId, newFormat)) { if(Cache.dbManager.updatePronounFormat(pronounId, newFormat)) {
sender.sendMessage("Format of pronoun " + pronoun + " updated from " + oldFormat + " to " + newFormat + "!"); sender.sendMessage("Format of pronoun " + pronoun + " updated from " + oldFormat + " to " + newFormat + "!");