mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Changes to update checking, add subcheck in alerts
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user