Add update-check http api call to see if client is outdated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
runelite.version=${project.version}
|
||||
runelite.version=${project.version}
|
||||
rs.version=${rs.version}
|
||||
Reference in New Issue
Block a user