mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 03:07:20 +00:00
[TASK] Set bot version to API V3
This commit is contained in:
1 parent
05abe6fc8a
commit
2f2546fece
2 files changed
+2
-2
No files matched your search
@@ -15,7 +15,7 @@ public class Configuration {
|
||||
public static final String GET_SERVER_PROVIDER = "http://bdn.parabot.org/api/get.php?action=server_provider&name=";
|
||||
public static final String GET_SERVER_PROVIDER_INFO = "http://bdn.parabot.org/api/get.php?action=server_information&name=";
|
||||
public static final String GET_SERVER_SETTINGS = "http://bdn.parabot.org/api/get.php?action=get_settings";
|
||||
public static final String GET_BOT_VERSION = "http://bdn.parabot.org/api/v2/bot/version";
|
||||
public static final String GET_BOT_VERSION = "http://v3.bdn.parabot.org/api/bot/list/client?latest=true";
|
||||
public static final String API_DOWNLOAD_BOT = "http://bdn.parabot.org/api/v2/bot/download/client/";
|
||||
public static final String DOWNLOAD_BOT = "http://bdn.parabot.org/versions/";
|
||||
public static final String REGISTRATION_PAGE = "https://www.parabot.org/community/register/";
|
||||
|
||||
@@ -220,7 +220,7 @@ public class Core {
|
||||
latestVersion = null;
|
||||
if (br != null) {
|
||||
JSONObject object = (JSONObject) WebUtil.getJsonParser().parse(br);
|
||||
latestVersion = new Version((String) object.get("result"));
|
||||
latestVersion = new Version((String) object.get("version"));
|
||||
}
|
||||
if (latestVersion != null) {
|
||||
if (Configuration.BOT_VERSION.compareTo(latestVersion) < 0) {
|
||||
|
||||
Reference in new issue
Block a user