Allow coloring pronoun formats
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5e94dace54
commit
27b1fabd72
@ -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)) {
|
||||
|
||||
|
@ -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 + "!");
|
||||
|
Loading…
Reference in New Issue
Block a user