9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

feat: give warning on update fail

This commit is contained in:
LoJoSho
2025-07-23 15:45:29 -05:00
parent f671a017b3
commit 24a4ae3d23

View File

@@ -88,6 +88,9 @@ public abstract class HibiscusPlugin extends JavaPlugin {
.setNotifyRequesters(false)
.setNotifyOpsOnJoin(false)
.checkEveryXHours(24)
.onFail((o, o2) -> {
getLogger().warning("Unable to connection to Polymart to check for updates.");
})
.checkNow();
onLatestVersion = checker.isUsingLatestVersion();
}