From 4c9ac4a98470500512d6380c09efd38f231d7595 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 5 Apr 2022 19:50:41 +0200 Subject: [PATCH] Revert some stuff --- src/de/steamwar/bungeecore/listeners/mods/Fabric.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/de/steamwar/bungeecore/listeners/mods/Fabric.java b/src/de/steamwar/bungeecore/listeners/mods/Fabric.java index 7df5be6..10ecd9f 100644 --- a/src/de/steamwar/bungeecore/listeners/mods/Fabric.java +++ b/src/de/steamwar/bungeecore/listeners/mods/Fabric.java @@ -60,6 +60,9 @@ public class Fabric extends BasicListener { BungeeCord.getInstance().getScheduler().schedule(BungeeCore.get(), () -> { synchronized (expectPluginMessage) { for (Map.Entry entry : expectPluginMessage.entrySet()) { + if (!checkedPlayers.containsKey(entry.getKey())) { + continue; + } if (System.currentTimeMillis() - entry.getValue() > TimeUnit.SECONDS.toMillis(20)) { banPlayer(SteamwarUser.get(entry.getKey()), entry.getKey()); return; @@ -89,6 +92,7 @@ public class Fabric extends BasicListener { } } } + expectPluginMessage.remove(player); List mods = new LinkedList<>();