public int iConomyversion() {
        if (iConomyversion == 0) {
            try {
                if (packageExists(new String[]{"net.milkbowl.vault.economy.Economy"})) {
                    iConomyversion = 2;
                    plugin.getLoggerUtility().log("hooked into Vault", LoggerUtility.Level.DEBUG);
                } else if (packageExists(new String[]{"com.nijikokun.register.payment.Methods"})) {
                    iConomyversion = 1;
                    plugin.getLoggerUtility().log("hooked into Register", LoggerUtility.Level.DEBUG);
                } else if (packageExists(new String[]{"com.iConomy.iConomy", "com.iConomy.system.Account", "com.iConomy.system.Holdings"})) {
                    iConomyversion = 5;
                    plugin.getLoggerUtility().log("hooked into iConomy5", LoggerUtility.Level.DEBUG);
                } else if (packageExists(new String[]{"com.iCo6.system.Accounts"})) {
                    iConomyversion = 6;
                    plugin.getLoggerUtility().log("hooked into iConomy6", LoggerUtility.Level.DEBUG);
                } else {
                    plugin.getLoggerUtility().log("cant hook into iConomy5, iConomy6, Vault or Register. Downloading Vault!", LoggerUtility.Level.ERROR);
                    plugin.getLoggerUtility().log(" ************ Please download and configure Vault!!!!! **********", LoggerUtility.Level.ERROR);
                }
            } catch (Exception E) {
                E.printStackTrace();
                plugin.getReportHandler().report(3334, "Error on searching EconomyPlugin", E.getMessage(), "iConomyHandler", E);
                iConomyversion = 0;
            }
            return iConomyversion;
        } else {
            return 2;
        }
    }