mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-23 00:21:26 +01:00
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:
parent
bd18f97a10
commit
ef194e9a81
@ -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!**************************
|
||||
|
Loading…
Reference in New Issue
Block a user