mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00: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
1 changed files with 2 additions and 4 deletions
|
@ -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 a new issue