@Override
	public void onEnable() {
		
		configData.load();
		
		PluginManager pm = this.getServer().getPluginManager();
		
		pm.registerEvent(Event.Type.PLAYER_INTERACT, this.playerListener, Priority.Normal, this);
		pm.registerEvent(Event.Type.BLOCK_BREAK, this.blockListener, Priority.Highest, this);
		
		pdfFile = this.getDescription();
		
		commandExecutor = new AnCommandExecutor(this);
		getCommand("casino").setExecutor(commandExecutor);
		
		this.logger.info(prefix +" v" + pdfFile.getVersion() + " enabled.");
		
		if(!pm.isPluginEnabled("Vault")) {
			
			this.logger.warning(prefix +" Vault is required in order to use this plugin.");
			this.logger.warning(prefix +" dev.bukkit.org/server-mods/vault/");
			pm.disablePlugin(this);
		}
		else {
			
			if(!setupEconomy()) {
				this.logger.warning(prefix + " An economy plugin is required in order to use this plugin.");
				pm.disablePlugin(this);
			}
		}
		
	}