From 77a1c8549b82216343d57075bad65d8ab1219a01 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Wed, 26 Jun 2024 15:16:21 +0200 Subject: [PATCH] good enough --- .../java/eu/m724/realweather/updater/UpdateNotifier.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/m724/realweather/updater/UpdateNotifier.java b/src/main/java/eu/m724/realweather/updater/UpdateNotifier.java index 0b80cb8..dc37477 100644 --- a/src/main/java/eu/m724/realweather/updater/UpdateNotifier.java +++ b/src/main/java/eu/m724/realweather/updater/UpdateNotifier.java @@ -35,18 +35,20 @@ public class UpdateNotifier extends BukkitRunnable implements Listener { // TODO @Override public void run() { + DebugLogger.info("update task running", 2); try { latestVersion = updater.getLatestVersion().join(); } catch (CompletionException e) { Throwable ex = e.getCause(); - if (ex instanceof IOException) - DebugLogger.info("error trying to contact update server: %d", 0, ex.getMessage()); + if (ex instanceof IOException) + DebugLogger.info("error trying to contact update server: %s", 0, ex.getMessage()); else e.printStackTrace(); } if (latestVersion == null) return; + DebugLogger.info("RealWeather is outdated. /rwadmin update", 0); for (Player player : plugin.getServer().getOnlinePlayers()) { if (player.hasPermission("realweather.update.notify")) {