Add missing color codes when parsing input.

This commit is contained in:
sk89q 2014-11-14 12:57:38 -08:00
parent 57b6f04b79
commit 7bd69bebf4

View File

@ -102,6 +102,15 @@ public static String replaceColorMacros(String str) {
str = str.replace("&7", ChatColor.GRAY.toString());
str = str.replace("&f", ChatColor.WHITE.toString());
str = str.replace("&k", ChatColor.MAGIC.toString());
str = str.replace("&l", ChatColor.BOLD.toString());
str = str.replace("&m", ChatColor.STRIKETHROUGH.toString());
str = str.replace("&n", ChatColor.UNDERLINE.toString());
str = str.replace("&o", ChatColor.ITALIC.toString());
str = str.replace("&x", ChatColor.RESET.toString());
return str;
}