mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-09-27 14:13:05 +02:00
Renamed serverAccount() to getServerAccountName()
-
This commit is contained in:
parent
80f658e748
commit
3e04048e67
@ -17,12 +17,12 @@ public class Economy {
|
||||
return !p.isEmpty() && economy.hasAccount(uName.getName(p));
|
||||
}
|
||||
|
||||
public static String serverAccount() {
|
||||
public static String getServerAccountName() {
|
||||
return Config.getString(Property.SERVER_ECONOMY_ACCOUNT);
|
||||
}
|
||||
|
||||
public static boolean isServerAccount(String acc) {
|
||||
return serverAccount().equals(acc);
|
||||
return getServerAccountName().equals(acc);
|
||||
}
|
||||
|
||||
public static void add(String name, double amount) {
|
||||
@ -31,7 +31,7 @@ public class Economy {
|
||||
double tax = getTax(taxAmount, amount);
|
||||
if (tax != 0) {
|
||||
if (!serverAccount().isEmpty()) {
|
||||
economy.add(serverAccount(), tax);
|
||||
economy.add(getServerAccountName(), tax);
|
||||
}
|
||||
amount -= tax;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user