diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-02-23 14:49:23 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-02-23 14:49:23 +0000 |
commit | 9f605e9a885022144999b1f27bb74627c47b97b6 (patch) | |
tree | ed557ac54197bcb1a1054192d85c9af872bf0a0f | |
parent | e5b91dae73839b4311bf67ea6510ed88a9f4af80 (diff) | |
download | Essentials-9f605e9a885022144999b1f27bb74627c47b97b6.tar Essentials-9f605e9a885022144999b1f27bb74627c47b97b6.tar.gz Essentials-9f605e9a885022144999b1f27bb74627c47b97b6.tar.lz Essentials-9f605e9a885022144999b1f27bb74627c47b97b6.tar.xz Essentials-9f605e9a885022144999b1f27bb74627c47b97b6.zip |
Fixing upgrade script to allow powertool upgrade.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java b/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java index 26e6f25bc..f70f0c091 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java @@ -271,18 +271,18 @@ public class EssentialsUpgrade if (config.hasProperty("powertools")) { @SuppressWarnings("unchecked") - final Map<Integer, Object> powertools = (Map<Integer, Object>)config.getProperty("powertools"); + final Map<String, Object> powertools = config.getConfigurationSection("powertools").getValues(false); if (powertools == null) { continue; } - for (Map.Entry<Integer, Object> entry : powertools.entrySet()) + for (Map.Entry<String, Object> entry : powertools.entrySet()) { if (entry.getValue() instanceof String) { List<String> temp = new ArrayList<String>(); temp.add((String)entry.getValue()); - ((Map<Integer, Object>)powertools).put(entry.getKey(), temp); + ((Map<String, Object>)powertools).put(entry.getKey(), temp); } } config.save(); |