Fixed chat colors

This commit is contained in:
LemADEC 2016-04-09 13:49:21 +02:00
parent 7979631fbd
commit e76765561c

View file

@ -546,7 +546,7 @@ public class WarpDrive implements LoadingCallback {
}
public static void addChatMessage(final ICommandSender sender, final String message) {
String[] lines = message.replace("\\n", "\n").split("\n");
String[] lines = message.replace("§", "" + (char)167).replace("\\n", "\n").split("\n");
for (String line : lines) {
sender.addChatMessage(new ChatComponentText(line));
}