mirror of https://github.com/MilkBowl/Vault.git
added a hashBankSupport method to Economy
This commit is contained in:
parent
1a763d7d5e
commit
e85083bae6
|
@ -39,6 +39,12 @@ public interface Economy {
|
|||
*/
|
||||
public String getName();
|
||||
|
||||
/**
|
||||
* Returns true if the given implementation supports banks.
|
||||
* @return true if the implementation supports banks
|
||||
*/
|
||||
public abstract boolean hasBankSupport();
|
||||
|
||||
/**
|
||||
* Format amount into a human readable String This provides translation into
|
||||
* economy specific formatting to improve consistency between plugins.
|
||||
|
|
|
@ -230,4 +230,9 @@ public class Economy_3co implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -280,4 +280,9 @@ public class Economy_BOSE6 implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return economy.getBankList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -283,4 +283,9 @@ public class Economy_BOSE7 implements Economy {
|
|||
public boolean has(String playerName, double amount) {
|
||||
return getBalance(playerName) >= amount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -196,5 +196,9 @@ public class Economy_CurrencyCore implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return Arrays.asList(this.currency.getAccountManager().getAccounts());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -196,4 +196,9 @@ public class Economy_EconXP implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -255,4 +255,9 @@ public class Economy_Essentials implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -165,4 +165,9 @@ public class Economy_MineConomy implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,4 +236,9 @@ public class Economy_MultiCurrency implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -172,4 +172,9 @@ public class Economy_eWallet implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -242,4 +242,9 @@ public class Economy_iConomy4 implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -205,4 +205,9 @@ public class Economy_iConomy5 implements Economy {
|
|||
public List<String> getBanks() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -198,4 +198,9 @@ public class Economy_iConomy6 implements Economy {
|
|||
public List<String> getBanks() {
|
||||
throw new UnsupportedOperationException("iConomy does not support listing of bank accounts");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasBankSupport() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue