public void onEnable(){ 
		this.loadConfig();
		this.loadDependencies();
		try {
		    Metrics metrics = new Metrics(this);
		    metrics.start();
		} catch (IOException e) {
			this.log("Couldn't connect to http://mcstats.org");
		}
		try {
			getCommand("xraylookup").setExecutor(new LookupCommand(this));
			getCommand("xraylookupall").setExecutor(new LookupAllCommand(this));
		}
		catch (NullPointerException e) {
			this.log("Error on Commandregistration!");
		}
		if (this.lookup.isEnabled()) {
			Bukkit.getServer().getPluginManager().registerEvents(new XRayListener(this), this);
			this.log(this.getName()+" loaded successfully");
		}
		else {
			this.log("Couldn't find CoreProtect, LogBlock or Prism");
		}
	}