mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-28 12:07:38 +01:00
Prevent replacement of { and } characters in chat.format
This commit is contained in:
parent
2361b9e724
commit
8fde5102b9
@ -415,7 +415,8 @@ public class Settings implements ISettings
|
||||
format = format.replace("{MESSAGE}", "%2$s");
|
||||
format = format.replace("{WORLDNAME}", "{1}");
|
||||
format = format.replace("{SHORTWORLDNAME}", "{2}");
|
||||
format = format.replaceAll("\\{(\\D*?)\\}", "\\[$1\\]");
|
||||
format = format.replaceAll("'", "''");
|
||||
format = format.replaceAll("\\{(\\D*?)\\}", "\\'{$1\\}'");
|
||||
format = "§r".concat(format);
|
||||
mFormat = new MessageFormat(format);
|
||||
chatFormats.put(group, mFormat);
|
||||
|
Loading…
Reference in New Issue
Block a user