Added config option for version checker

This commit is contained in:
William278 committed 2021-02-12 11:42:43 +00:00
1 parent 9a595efabf
commit 95b762e283
5 files changed
+16 -30

No files matched your search

@@ -116,9 +116,6 @@ public final class HuskHomes extends JavaPlugin {
// Set instance for easy cross-class referencing
setInstance(this);
// Check if HuskHomes is up-to-date
getLogger().info(versionChecker.getVersionCheckString());
// MIGRATION: Check if a migration needs to occur
legacyVersionMigrator.checkStartupMigration();
@@ -133,6 +130,11 @@ public final class HuskHomes extends JavaPlugin {
// Load the messages (in the right language)
messageManager.loadMessages(HuskHomes.settings.getLanguage());
// Check for updates (if enabled)
if (HuskHomes.settings.doUpdateChecks()) {
getLogger().info(versionChecker.getVersionCheckString());
}
// Fetch spawn location if set
settingHandler.fetchSpawnLocation();