From e4268efd8b36c4e3d44fa2266124c0bcd32a999a Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Tue, 5 Apr 2022 18:25:17 +0200 Subject: [PATCH] Remove Redundant Message when switching Servers --- src/de/steamwar/bungeecore/listeners/mods/Fabric.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/listeners/mods/Fabric.java b/src/de/steamwar/bungeecore/listeners/mods/Fabric.java index ae3024a..eff649e 100644 --- a/src/de/steamwar/bungeecore/listeners/mods/Fabric.java +++ b/src/de/steamwar/bungeecore/listeners/mods/Fabric.java @@ -110,8 +110,10 @@ public class Fabric extends BasicListener { } if(Utils.handleMods(player,mods)) { - checkedPlayers.add(player); - if(!checkedPlayers.contains(player)) Message.send("MODIFICATION_CHECK_SUCCESS", player); + if(!checkedPlayers.contains(player)) { + Message.send("MODIFICATION_CHECK_SUCCESS", player); + checkedPlayers.add(player); + } Storage.fabricPlayers.remove(player); } }