diff --git a/blackwidowpluginbukkit/src/main/java/io/github/arcaneplugins/blackwidow/plugin/bukkit/logic/BukkitVersionChecker.java b/blackwidowpluginbukkit/src/main/java/io/github/arcaneplugins/blackwidow/plugin/bukkit/logic/BukkitVersionChecker.java index cb8eb71..bd7fa86 100644 --- a/blackwidowpluginbukkit/src/main/java/io/github/arcaneplugins/blackwidow/plugin/bukkit/logic/BukkitVersionChecker.java +++ b/blackwidowpluginbukkit/src/main/java/io/github/arcaneplugins/blackwidow/plugin/bukkit/logic/BukkitVersionChecker.java @@ -98,7 +98,7 @@ private void checkForLatestVersion(){ final UpdateChecker updateChecker = new UpdateChecker("BlackWidow"); try{ - updateChecker.getLatestVersion(latestVersion -> { + final boolean result = updateChecker.getLatestVersion(latestVersion -> { //noinspection deprecation final String currentVersion = plugin.getDescription().getVersion() .split(" ")[0]; @@ -145,6 +145,10 @@ else if (isOutOfDate){ notifyPlayers(); } }); + + if (!result){ + plugin.getLogger().warning("Error getting latest version: " + updateChecker.getErrorMessage()); + } } catch (Exception e){ plugin.getLogger().warning("Error getting latest version: " + e.getMessage());