final Object url = ((JSONObject) o).get("downloadUrl");
if (!(url instanceof String))
continue;
final Version version = new Version(((String) name).contains(" ") ? "" + ((String) name).substring(0, ((String) name).indexOf(' ')) : ((String) name));
if (version.compareTo(Skript.getVersion()) > 0) {
infos.add(new VersionInfo((String) name, version, (String) url));
}
}
}
} finally {