diff --git a/bukkit/src/main/java/com/discordsrv/bukkit/requiredlinking/BukkitRequiredLinkingModule.java b/bukkit/src/main/java/com/discordsrv/bukkit/requiredlinking/BukkitRequiredLinkingModule.java index 39738a56..c463e539 100644 --- a/bukkit/src/main/java/com/discordsrv/bukkit/requiredlinking/BukkitRequiredLinkingModule.java +++ b/bukkit/src/main/java/com/discordsrv/bukkit/requiredlinking/BukkitRequiredLinkingModule.java @@ -33,9 +33,11 @@ import org.bukkit.entity.Player; import org.bukkit.event.*; import org.bukkit.event.player.*; +import java.util.List; import java.util.Map; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.CopyOnWriteArrayList; import java.util.function.BiConsumer; import java.util.function.Consumer; import java.util.function.Supplier; @@ -180,6 +182,7 @@ public class BukkitRequiredLinkingModule extends ServerRequireLinkingModule frozen = new ConcurrentHashMap<>(); + private final List loginsHandled = new CopyOnWriteArrayList<>(); private boolean isFrozen(Player player) { return frozen.containsKey(player.getUniqueId()); @@ -191,11 +194,50 @@ public class BukkitRequiredLinkingModule extends ServerRequireLinkingModule