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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user