public XRayConfig(XRayLookup plugin) {
		this.plugin = plugin;
		File configDir = new File("plugins/"+plugin.getName());
		if (!configDir.exists()) {
            configDir.mkdir();
        }
		File configFile = new File("plugins/"+plugin.getName()+"/config.yml");

        if (!configFile.exists()) {
            try {
                configFile.createNewFile();
            } catch (Exception e) {
                plugin.log("Error occured on Config generation");
            }
        }
        if (this.loadConfig()) {
        	this.checkConfig();
        	this.convertData();
        }
        else {
        	this.checkConfig();
        	this.convertData();
        }
		
	}