mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Update the update checker
This commit is contained in:
1 parent
fd0fef0454
commit
e025b7bf92
4 files changed
+81
-29
No files matched your search
@@ -16,6 +16,7 @@ import me.william278.huskhomes2.listeners.PluginMessageListener;
|
||||
import me.william278.huskhomes2.migrators.UpgradeDatabase;
|
||||
import me.william278.huskhomes2.teleport.SettingHandler;
|
||||
import me.william278.huskhomes2.util.PlayerList;
|
||||
import me.william278.huskhomes2.util.UpdateChecker;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
import org.bstats.charts.SimplePie;
|
||||
import org.bukkit.Bukkit;
|
||||
@@ -185,9 +186,9 @@ public final class HuskHomes extends JavaPlugin {
|
||||
// Load the messages (in the right language)
|
||||
MessageManager.loadMessages(HuskHomes.getSettings().getLanguage());
|
||||
|
||||
// Check for updates (if enabled)
|
||||
if (HuskHomes.getSettings().doUpdateChecks()) {
|
||||
getLogger().info(getVersionCheckString());
|
||||
// Check for updates via console
|
||||
if (HuskHomes.getSettings().doStartupUpdateChecks()) {
|
||||
new UpdateChecker(this).logToConsole();
|
||||
}
|
||||
|
||||
// Initialize the database
|
||||
|
||||
Reference in new issue
Block a user