mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Use Updater 2.0
This commit is contained in:
1 parent
db77040560
commit
068af0606d
2 files changed
+232
-230
No files matched your search
@@ -47,6 +47,7 @@ public class AntiCheat extends JavaPlugin {
|
||||
private static boolean verbose;
|
||||
private static boolean developer;
|
||||
private static final long XRAY_TIME = 1200;
|
||||
private static final int PROJECT_ID = 38723;
|
||||
private static PacketManager packetManager;
|
||||
private static boolean protocolLib = false;
|
||||
|
||||
@@ -143,7 +144,7 @@ public class AntiCheat extends JavaPlugin {
|
||||
private void setupUpdater() {
|
||||
if (config.getConfig().autoUpdate.getValue()) {
|
||||
verboseLog("Checking for a new update...");
|
||||
Updater updater = new Updater(this, "anticheat", this.getFile(), Updater.UpdateType.DEFAULT, false);
|
||||
Updater updater = new Updater(this, PROJECT_ID, this.getFile(), Updater.UpdateType.DEFAULT, false);
|
||||
update = updater.getResult() != Updater.UpdateResult.NO_UPDATE;
|
||||
verboseLog("Update available: " + update);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user