Added formatting codes, &k/l/m/n/o and &x (reset).

This commit is contained in:
wizjany 2013-08-31 10:07:46 -04:00
parent f8ed1a3e3e
commit e26238e814

View File

@ -242,6 +242,14 @@ public static String replaceColorMacros(String str) {
str = str.replace("&2", ChatColor.GRAY.toString());
str = str.replace("&w", 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;
}