diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-03-25 14:20:26 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-03-25 14:20:26 +0100 |
commit | c57c95a2a7d3ed4cec76068479c0158b7af2a77c (patch) | |
tree | ea030e19486b988c5e38c4467945053774a4b797 | |
parent | b279670bc33407e6640d05be04924abfede56702 (diff) | |
download | Essentials-c57c95a2a7d3ed4cec76068479c0158b7af2a77c.tar Essentials-c57c95a2a7d3ed4cec76068479c0158b7af2a77c.tar.gz Essentials-c57c95a2a7d3ed4cec76068479c0158b7af2a77c.tar.lz Essentials-c57c95a2a7d3ed4cec76068479c0158b7af2a77c.tar.xz Essentials-c57c95a2a7d3ed4cec76068479c0158b7af2a77c.zip |
Fix chat format regex.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Settings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java index e194cf21b..08c3b74db 100644 --- a/Essentials/src/com/earth2me/essentials/Settings.java +++ b/Essentials/src/com/earth2me/essentials/Settings.java @@ -333,7 +333,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("\\{(\\D*)\\}", "\\[$1\\]"); + format = format.replaceAll("\\{(\\D*?)\\}", "\\[$1\\]"); mFormat = new MessageFormat(format); chatFormats.put(group, mFormat); } |