summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-06 01:36:26 +0000
committerxeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-06 01:36:26 +0000
commitef194e9a81d3f388335d2461c8a0495ea8b98915 (patch)
tree01d262afed43c615e1ed7ed7e5dc71f9a3bcdd3b
parentbd18f97a1097cfa317edf4af6b4b8c3bfa57c8ca (diff)
downloadEssentials-ef194e9a81d3f388335d2461c8a0495ea8b98915.tar
Essentials-ef194e9a81d3f388335d2461c8a0495ea8b98915.tar.gz
Essentials-ef194e9a81d3f388335d2461c8a0495ea8b98915.tar.lz
Essentials-ef194e9a81d3f388335d2461c8a0495ea8b98915.tar.xz
Essentials-ef194e9a81d3f388335d2461c8a0495ea8b98915.zip
Compatability fix with API.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1352 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r--Essentials/src/com/earth2me/essentials/api/Economy.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/api/Economy.java b/Essentials/src/com/earth2me/essentials/api/Economy.java
index 26cebfc05..9deb408d1 100644
--- a/Essentials/src/com/earth2me/essentials/api/Economy.java
+++ b/Essentials/src/com/earth2me/essentials/api/Economy.java
@@ -19,7 +19,7 @@ public class Economy
protected static boolean accountCreated(String name)
{
File folder = new File(ess.getDataFolder(), "userdata");
- File account = new File(folder, Util.sanitizeFileName(name) + ".yml");
+ File account = new File(folder, name.toLowerCase() + ".yml");
return account.exists();
}
@@ -283,9 +283,7 @@ public class Economy
{
formed = formed.substring(0, formed.length() - 1);
}
- getCurrency();
- getCurrencyPlural();
- return formed + " " + ((amount <= 1 && amount >= -1) ? ess.getSettings().getCurrency() : ess.getSettings().getCurrencyPlural());
+ return formed + " " + ((amount <= 1 && amount >= -1) ? getCurrency() : getCurrencyPlural());
}
//************************!WARNING!**************************