Only enable the update checker by default if the server project isn't unknown.

Took 14 minutes
This commit is contained in:
Kiran Hart 2024-02-09 13:01:46 -05:00
parent b512221b6a
commit aec92eba0c
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -310,7 +310,7 @@ public class AuctionHouse extends TweetyPlugin {
}
// update check
if (Settings.UPDATE_CHECKER.getBoolean())
if (Settings.UPDATE_CHECKER.getBoolean() && ServerProject.getServerVersion() != ServerProject.UNKNOWN)
getServer().getScheduler().runTaskLaterAsynchronously(this, () -> this.status = new UpdateChecker(this, 60325, getConsole()).check().getStatus(), 1L);
// metrics