mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
Default chat formatting should strip all format codes, not just colours.
This commit is contained in:
@@ -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}");
|
||||||
|
Reference in New Issue
Block a user