Skip to content

Commit

Permalink
Add list of plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
fernferret committed Jul 7, 2011
1 parent 3c485ca commit 8380320
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/com/fernferret/allpay/AllPay.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
public class AllPay {
private static final String version = ".5";
protected static final String logPrefix = "[AllPay] - Version " + version;

protected static final Logger log = Logger.getLogger("Minecraft");
protected static String prefix;
private Plugin plugin;
private GenericBank bank;

public final static String[] validEconPlugins = {"Essentials", "RealShop", "BOSEconomy", "iConomy"};
public AllPay(Plugin plugin, String prefix) {
this.plugin = plugin;
AllPay.prefix = prefix;
Expand Down Expand Up @@ -65,7 +66,7 @@ private void loadEssentialsEconomoy() {
}

private void loadRealShopEconomy() {
if (this.bank == null) {
if (this.bank == null && !(this.bank instanceof EssentialsBank)) {
Plugin realShopPlugin = this.plugin.getServer().getPluginManager().getPlugin("RealShop");
if (realShopPlugin != null) {
RealEconomy realEconPlugin = new RealEconomy((RealPlugin) realShopPlugin);
Expand All @@ -76,7 +77,7 @@ private void loadRealShopEconomy() {
}

private void loadBOSEconomy() {
if (this.bank == null) {
if (this.bank == null && !(this.bank instanceof EssentialsBank)) {
BOSEconomy boseconPlugin = (BOSEconomy) this.plugin.getServer().getPluginManager().getPlugin("BOSEconomy");
if (boseconPlugin != null) {
this.bank = new BOSEconomyBank(boseconPlugin);
Expand All @@ -93,7 +94,7 @@ private void loadDefaultItemEconomy() {
}

private void loadiConomy() {
if (this.bank == null) {
if (this.bank == null && !(this.bank instanceof EssentialsBank)) {
Plugin iConomyTest = this.plugin.getServer().getPluginManager().getPlugin("iConomy");
try {
if (iConomyTest != null && iConomyTest instanceof com.iConomy.iConomy) {
Expand Down

0 comments on commit 8380320

Please sign in to comment.