mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 07:52:06 +00:00
Revert "Prevent replacement of { and } characters in chat.format"
This reverts commit 8fde5102b9
.
This commit is contained in:
parent
286091cd32
commit
2836c0862d
1 changed files with 1 additions and 2 deletions
|
@ -415,8 +415,7 @@ public class Settings implements ISettings
|
|||
format = format.replace("{MESSAGE}", "%2$s");
|
||||
format = format.replace("{WORLDNAME}", "{1}");
|
||||
format = format.replace("{SHORTWORLDNAME}", "{2}");
|
||||
format = format.replaceAll("'", "''");
|
||||
format = format.replaceAll("\\{(\\D*?)\\}", "\\'{$1\\}'");
|
||||
format = format.replaceAll("\\{(\\D*?)\\}", "\\[$1\\]");
|
||||
format = "§r".concat(format);
|
||||
mFormat = new MessageFormat(format);
|
||||
chatFormats.put(group, mFormat);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue