Add update-check http api call to see if client is outdated

This commit is contained in:
Adam
2017-04-19 20:40:36 -04:00
parent 8e24e6a81f
commit 913e430047
5 changed files with 187 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ public class RuneliteAPI
private static final String BASE = "https://api.runelite.net/runelite-";
private static final Properties properties = new Properties();
private static String version;
private static int rsVersion;
static
{
@@ -46,6 +47,7 @@ public class RuneliteAPI
properties.load(in);
version = properties.getProperty("runelite.version");
rsVersion = Integer.parseInt(properties.getProperty("rs.version"));
}
catch (IOException ex)
{
@@ -68,4 +70,9 @@ public class RuneliteAPI
RuneliteAPI.version = version;
}
public static int getRsVersion()
{
return rsVersion;
}
}

View File

@@ -1 +1,2 @@
runelite.version=${project.version}
runelite.version=${project.version}
rs.version=${rs.version}