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;