Use replace() instead of replaceAll(), where possible

This commit is contained in:
Mike Primm 2011-12-29 14:29:52 +08:00 committed by mikeprimm
parent e009aefb18
commit 17fd2c1efe
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ public class HeroWebChatComponent extends Component {
String msgfmt = plugin.configuration.getString("webmsgformat", null);
if(msgfmt != null) {
msgfmt = unescapeString(msgfmt);
msg = msgfmt.replaceAll("%playername%", t.name).replaceAll("%message%", t.message);
msg = msgfmt.replace("%playername%", t.name).replace("%message%", t.message);
}
else {
msg = unescapeString(plugin.configuration.getString("webprefix", "\u00A72[WEB] ")) + t.name + ": " + unescapeString(plugin.configuration.getString("websuffix", "\u00A7f")) + t.message;