public String getModVersion(String modName){
		JSONParser parser = new JSONParser();
		 
		try {
			Object obj;
			if(modName.equals("base")){
				obj = parser.parse(new FileReader(gamePath + "/data/base/info.json"));
			} 
			else if(modName.contains(".zip")){
				getJsonFromZip(modPath + modName);
				obj = parser.parse(new FileReader(System.getProperty("java.io.tmpdir") + "/" + modName.replace(".zip", "").toLowerCase() + "/info.json"));
			}	else obj = parser.parse(new FileReader(modPath + modName + "/info.json"));
			 
			JSONObject jsonObject = (JSONObject) obj;
			
			return (String) jsonObject.get("version");
	
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ParseException e) {
			e.printStackTrace();
		}
		
		return "Error";
	}