mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-26 02:57:42 +01:00
Add missing color codes when parsing input.
This commit is contained in:
parent
57b6f04b79
commit
7bd69bebf4
@ -102,6 +102,15 @@ public static String replaceColorMacros(String str) {
|
|||||||
str = str.replace("&7", ChatColor.GRAY.toString());
|
str = str.replace("&7", ChatColor.GRAY.toString());
|
||||||
str = str.replace("&f", ChatColor.WHITE.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;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user