Default chat formatting should strip all format codes, not just colours.

This commit is contained in:
KHobbits 2013-05-19 01:03:54 +01:00
parent 9dc6e7ad1e
commit a738e49e3c

View File

@ -410,7 +410,7 @@ public class Settings implements ISettings
if (mFormat == null) if (mFormat == null)
{ {
String format = config.getString("chat.group-formats." + (group == null ? "Default" : group), String format = config.getString("chat.group-formats." + (group == null ? "Default" : group),
config.getString("chat.format", "&7[{GROUP}]&f {DISPLAYNAME}&7:&f {MESSAGE}")); config.getString("chat.format", "&7[{GROUP}]&r {DISPLAYNAME}&7:&r {MESSAGE}"));
format = Util.replaceFormat(format); format = Util.replaceFormat(format);
format = format.replace("{DISPLAYNAME}", "%1$s"); format = format.replace("{DISPLAYNAME}", "%1$s");
format = format.replace("{GROUP}", "{0}"); format = format.replace("{GROUP}", "{0}");