1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 18:14:38 +02:00

Prevent replacement of { and } characters in chat.format

This commit is contained in:
Zak Ford
2013-01-24 11:43:10 -05:00
parent f06dde59bd
commit 4cb9f58c88

View File

@@ -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);