mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Added config option for version checker
This commit is contained in:
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user