From 9c411a21ad32f89116fbe207d256a376eabd05b3 Mon Sep 17 00:00:00 2001 From: garbagemule Date: Fri, 16 Aug 2013 17:52:32 +0200 Subject: [PATCH] replaceAll => replace for dollar sign compatibility. --- resources/plugin.yml | 2 +- src/com/garbagemule/MobArena/Msg.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/plugin.yml b/resources/plugin.yml index 74a1609..1e04e1e 100644 --- a/resources/plugin.yml +++ b/resources/plugin.yml @@ -1,7 +1,7 @@ name: MobArena author: garbagemule main: com.garbagemule.MobArena.MobArena -version: 0.95.5.22 +version: 0.95.5.23 softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault] commands: ma: diff --git a/src/com/garbagemule/MobArena/Msg.java b/src/com/garbagemule/MobArena/Msg.java index 5baed50..5bcf7f0 100644 --- a/src/com/garbagemule/MobArena/Msg.java +++ b/src/com/garbagemule/MobArena/Msg.java @@ -94,13 +94,13 @@ public enum Msg { } public String format(String s) { - return toString().replaceAll("%", s); + return toString().replace("%", s); } static void load(ConfigurationSection config) { for (Msg msg : values()) { // ARENA_END_GLOBAL => arena-end-global - String key = msg.name().toLowerCase().replaceAll("_","-"); + String key = msg.name().toLowerCase().replace("_","-"); msg.set(config.getString(key, "")); } } @@ -109,7 +109,7 @@ public enum Msg { YamlConfiguration yaml = new YamlConfiguration(); for (Msg msg : values()) { // ARENA_END_GLOBAL => arena-end-global - String key = msg.name().replaceAll("_","-").toLowerCase(); + String key = msg.name().replace("_","-").toLowerCase(); yaml.set(key, msg.value); } return yaml;