From 24a4ae3d239ea8a32687367f5667b58c04a5837f Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Wed, 23 Jul 2025 15:45:29 -0500 Subject: [PATCH] feat: give warning on update fail --- .../main/java/me/lojosho/hibiscuscommons/HibiscusPlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/me/lojosho/hibiscuscommons/HibiscusPlugin.java b/common/src/main/java/me/lojosho/hibiscuscommons/HibiscusPlugin.java index 3d11590..815905d 100644 --- a/common/src/main/java/me/lojosho/hibiscuscommons/HibiscusPlugin.java +++ b/common/src/main/java/me/lojosho/hibiscuscommons/HibiscusPlugin.java @@ -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(); }