mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 13:36:31 +00:00
Fix chat format regex.
This commit is contained in:
parent
e53a480c22
commit
7bd7992b24
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ public class Settings implements ISettings
|
||||||
format = format.replace("{MESSAGE}", "%2$s");
|
format = format.replace("{MESSAGE}", "%2$s");
|
||||||
format = format.replace("{WORLDNAME}", "{1}");
|
format = format.replace("{WORLDNAME}", "{1}");
|
||||||
format = format.replace("{SHORTWORLDNAME}", "{2}");
|
format = format.replace("{SHORTWORLDNAME}", "{2}");
|
||||||
format = format.replaceAll("\\{(\\D*)\\}", "\\[$1\\]");
|
format = format.replaceAll("\\{(\\D*?)\\}", "\\[$1\\]");
|
||||||
mFormat = new MessageFormat(format);
|
mFormat = new MessageFormat(format);
|
||||||
chatFormats.put(group, mFormat);
|
chatFormats.put(group, mFormat);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue