From 6c420795dd0a6559fa2c9930a6497f4cd07b3826 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel <34905970+ham1255@users.noreply.github.com> Date: Tue, 27 Apr 2021 19:49:58 +0400 Subject: [PATCH] fix to spamming seconds behind --- .../com/imaginarycode/minecraft/redisbungee/RedisBungee.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index 4c53fd2..a69f397 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -105,6 +105,7 @@ public final class RedisBungee extends Plugin { servers.add(entry.getKey()); else if (nag && nagTime <= 0) { getLogger().severe(entry.getKey() + " is " + (time - stamp) + " seconds behind! (Time not synchronized or server down?)"); + jedis.hdel("heartbeats", entry.getKey()); } } catch (NumberFormatException ignored) { }