public boolean readConfig() {
		buttonConfig = new Configuration(new File(configDir + "config.yml"));
		File finder = new File(configDir + "config.yml");
		if(!finder.exists()) {
			//Setting Defaults in the file
			buttonConfig.set("econmode.mode", "money");
			buttonConfig.set("econmode.itemid", 264);
			buttonConfig.set("metrics.enabled", true);
			buttonConfig.set("cooldownInSeconds", 5);
			buttonConfig.set("effectMessage", true);
			buttonConfig.set("bpinfo.onBYdefault", false);
			buttonConfig.set("charge.multiplier", 2);
			buttonConfig.set("action.command.type", "money");
			buttonConfig.set("action.command.cost", 10);
			buttonConfig.set("action.command.itemid", "0");
			buttonConfig.set("action.cooldown.type", "money");
			buttonConfig.set("action.cooldown.cost", 10);
			buttonConfig.set("action.cooldown.itemid", "0");
			buttonConfig.set("action.sound.type", "money");
			buttonConfig.set("action.sound.cost", 10);
			buttonConfig.set("action.sound.itemid", "0");
			buttonConfig.set("action.effect.type", "money");
			buttonConfig.set("action.effect.cost", 10);
			buttonConfig.set("action.effect.itemid", "0");
			buttonConfig.set("action.text.type", "money");
			buttonConfig.set("action.text.cost", 10);
			buttonConfig.set("action.text.itemid", "0");
			buttonConfig.set("action.item.type", "money");
			buttonConfig.set("action.item.cost", 10);
			buttonConfig.set("action.item.itemid", "0");
			buttonConfig.set("action.death.type", "money");
			buttonConfig.set("action.death.cost", 10);
			buttonConfig.set("action.death.itemid", "0");
			buttonConfig.set("action.heal.type", "money");
			buttonConfig.set("action.heal.cost", 10);
			buttonConfig.set("action.heal.itemid", "0");
			buttonConfig.set("action.lightning.type", "money");
			buttonConfig.set("action.lightning.cost", 10);
			buttonConfig.set("action.lightning.itemid", "0");
			buttonConfig.set("action.teleport.type", "money");
			buttonConfig.set("action.teleport.cost", 10);
			buttonConfig.set("action.teleport.itemid", "0");
			buttonConfig.set("action.gmessage.type", "money");
			buttonConfig.set("action.gmessage.cost", 10);
			buttonConfig.set("action.gmessage.itemid", "0");
			buttonConfig.set("action.burn.type", "money");
			buttonConfig.set("action.burn.cost", 10);
			buttonConfig.set("action.burn.itemid", "0");
			buttonConfig.set("action.console.type", "money");
			buttonConfig.set("action.console.cost", 10);
			buttonConfig.set("action.console.itemid", "0");
			buttonConfig.set("action.mob.type", "money");
			buttonConfig.set("action.mob.cost", 10);
			buttonConfig.set("action.mob.itemid", "0");
			buttonConfig.set("action.take.type", "money");
			buttonConfig.set("action.take.cost", 10);
			buttonConfig.set("action.take.itemid", "0");
			buttonConfig.save();
			readConfig();
			return false;
		}
		buttonConfig.load();
		String tmode = buttonConfig.getString("econmode.mode");
		if(tmode.equalsIgnoreCase("money") || tmode.equalsIgnoreCase("item") || tmode.equalsIgnoreCase("xp")) {
			Settings.econmode = tmode;
		} else { Settings.econmode = "xp"; log.info("[ButtonsPlus] Defaulting econmode to xp, please set a mode in the config.yml");}		
		Settings.itemid = buttonConfig.getInt("econmode.itemid");
		Settings.cooldownTimeInSeconds = buttonConfig.getInt("cooldownInSeconds");
		Settings.effectMessage = buttonConfig.getBoolean("effectMessage");
		Settings.chargeMultiplier = buttonConfig.getInt("charge.multiplier");
		Settings.burncost = buttonConfig.getInt("action.burn.cost");
		Settings.commandcost = buttonConfig.getInt("action.command.cost");
		Settings.cooldowncost = buttonConfig.getInt("action.cooldown.cost");
		Settings.soundcost = buttonConfig.getInt("action.sound.cost");
		Settings.healcost = buttonConfig.getInt("action.heal.cost");
		Settings.deathcost = buttonConfig.getInt("action.death.cost");
		Settings.lightningcost = buttonConfig.getInt("action.lightning.cost");
		Settings.gmessagecost = buttonConfig.getInt("action.gmessage.cost");
		Settings.teleportcost = buttonConfig.getInt("action.teleport.cost");
		Settings.textcost = buttonConfig.getInt("action.text.cost");
		Settings.itemcost = buttonConfig.getInt("action.item.cost");
		Settings.effectcost = buttonConfig.getInt("action.effect.cost");
		Settings.consolecost = buttonConfig.getInt("action.console.cost");
		Settings.mobcost = buttonConfig.getInt("action.mob.cost");
		Settings.takecost = buttonConfig.getInt("aciton.take.cost");
		Settings.metricson = buttonConfig.getBoolean("metrics.enabled");
		return true;
	}