public String getModDependency(String modName){
		if(modName.equals("base")) return "";
		JSONParser parser = new JSONParser();
		 
		try {
			Object obj;
			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;
			
			JSONArray jsonArray;
			try {
				jsonArray = (JSONArray) jsonObject.get("dependencies");
			} catch (Exception e) {
				return jsonObject.get("dependencies").toString();
				//if its not an array its just a single mod
			}
			
			
			if(jsonArray!=null) return jsonArray.toString().toLowerCase();
			
		
			
		} catch (FileNotFoundException e) {
			con.log("Warning", "getModDependency no file found");
			return "";
		} catch (IOException e) {
			con.log("Warning", "getModDependency IOException");
			return "";
		} catch (ParseException e) {
			con.log("Warning", "getModDependency ParseException");
			return "";
		}
		
		return "";
	}