Renamed serverAccount() to getServerAccountName()

-
This commit is contained in:
meiamsome 2012-08-24 17:36:35 +02:00
parent 80f658e748
commit 3e04048e67

View File

@ -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;
}