summaryrefslogtreecommitdiffstats
path: root/Essentials2Compat
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials2Compat')
-rw-r--r--Essentials2Compat/src/com/earth2me/essentials/EssentialsUpgrade.java6
-rw-r--r--Essentials2Compat/src/com/earth2me/essentials/api/Economy.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/Essentials2Compat/src/com/earth2me/essentials/EssentialsUpgrade.java b/Essentials2Compat/src/com/earth2me/essentials/EssentialsUpgrade.java
index a8c85f956..2ad1fbb4b 100644
--- a/Essentials2Compat/src/com/earth2me/essentials/EssentialsUpgrade.java
+++ b/Essentials2Compat/src/com/earth2me/essentials/EssentialsUpgrade.java
@@ -269,18 +269,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();
diff --git a/Essentials2Compat/src/com/earth2me/essentials/api/Economy.java b/Essentials2Compat/src/com/earth2me/essentials/api/Economy.java
index 0aeb7bdc9..27bdf8233 100644
--- a/Essentials2Compat/src/com/earth2me/essentials/api/Economy.java
+++ b/Essentials2Compat/src/com/earth2me/essentials/api/Economy.java
@@ -169,7 +169,7 @@ public final class Economy
{
throw new RuntimeException(noCallBeforeLoad);
}
- return Util.formatCurrency(amount, ess);
+ return Util.displayCurrency(amount, ess);
}
/**