Compatability fix with API.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1352 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
xeology 2011-05-06 01:36:26 +00:00
parent bd18f97a10
commit ef194e9a81

View File

@ -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!**************************