@SuppressWarnings("unchecked")
	public static void loadOptions(File f) throws Exception{
		if(!f.exists()){
			f.createNewFile();
			saveDefaultOptions(f);
		}
			
		YAMLFile data = new YAMLFile(true);
		data.Load(f);
		for(Option p : options){
			if(p.getType().equals("int"))
				p.value = data.getInt(p.key);
			if(p.getType().equals("boolean"))
				p.value = data.getboolean(p.key);
			if(p.getType().equals("String"))
				p.value = data.getString(p.key);
		}
	}