From 3da8695b2fcf9ec76493c847d1e27d279e1125a2 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 9 Apr 2023 07:54:16 +0700 Subject: [PATCH] remove the thing --- .../chayapak/chomens_bot/plugins/PlayersPlugin.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/PlayersPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/PlayersPlugin.java index 0f47e7a..54446d3 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/PlayersPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/PlayersPlugin.java @@ -18,8 +18,6 @@ public class PlayersPlugin extends SessionAdapter { private final Bot bot; @Getter private List list = new ArrayList<>(); - private final Map loginNames = new HashMap<>(); - private final List listeners = new ArrayList<>(); public PlayersPlugin (Bot bot) { @@ -86,10 +84,10 @@ public class PlayersPlugin extends SessionAdapter { final MutablePlayerListEntry target = new MutablePlayerListEntry(newEntry); list.add(target); - loginNames.put(target, target.profile().getIdAsString()); + // loginNames.put(target, target.profile().getIdAsString()); if (duplicate == null) for (PlayerListener listener : listeners) { listener.playerJoined(target); } - else { + /* else { for (Map.Entry entry : loginNames.entrySet()) { if ( !entry.getValue().equals(newEntry.getProfile().getIdAsString()) || @@ -102,8 +100,9 @@ public class PlayersPlugin extends SessionAdapter { return; } - for (PlayerListener listener : listeners) { listener.playerUnVanished(target); } - } + */ + else for (PlayerListener listener : listeners) { listener.playerUnVanished(target); } + // } } private void updateGamemode (PlayerListEntry newEntry) {