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) {