Changes to update checking, add subcheck in alerts

This commit is contained in:
Rammelkast committed 2020-08-09 17:24:51 +02:00
1 parent 7cd90cfb61
commit 1f48785d1d
17 files changed
+126 -89

No files matched your search

@@ -33,11 +33,15 @@ public class UpdateManager {
public static final String SPIGOT_VERSION_URL = "https://api.spigotmc.org/legacy/update.php?resource="
+ RESOURCE_ID;
private final String latestVersion;
private final boolean isLatest;
private final boolean isAhead;
private String latestVersion;
private boolean isLatest;
private boolean isAhead;
public UpdateManager() {
this.update();
}
public void update() {
this.latestVersion = this.getOnlineData(SPIGOT_VERSION_URL);
if (this.latestVersion == null) {
this.isLatest = true;