mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-25 10:38:00 +01:00
Default chat formatting should strip all format codes, not just colours.
This commit is contained in:
parent
9dc6e7ad1e
commit
a738e49e3c
@ -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}");
|
||||||
|
Loading…
Reference in New Issue
Block a user