diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/NameCheckTask.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/NameCheckTask.java index 0114c6a4..289fd358 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/NameCheckTask.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/NameCheckTask.java @@ -54,7 +54,7 @@ public class NameCheckTask extends JoinManagement { protected final FastLoginCore core; protected final AuthPlugin

authHook; private final FloodgateService floodgateService; + private final GeyserService geyserService; - public JoinManagement(FastLoginCore core, AuthPlugin

authHook, FloodgateService floodService) { + public JoinManagement(FastLoginCore core, AuthPlugin

authHook, FloodgateService floodService, GeyserService geyserService) { this.core = core; this.authHook = authHook; this.floodgateService = floodService; + this.geyserService = geyserService; } public void onLogin(String username, S source) { @@ -63,6 +66,10 @@ public abstract class JoinManagement

{ return; } } + //check if the player is connecting through Geyser (without Floodgate) + else if (geyserService != null && geyserService.isGeyserConnection(username)) { + + } callFastLoginPreLoginEvent(username, source, profile); diff --git a/velocity/src/main/java/com/github/games647/fastlogin/velocity/task/AsyncPremiumCheck.java b/velocity/src/main/java/com/github/games647/fastlogin/velocity/task/AsyncPremiumCheck.java index d219ef46..7a93d8fa 100644 --- a/velocity/src/main/java/com/github/games647/fastlogin/velocity/task/AsyncPremiumCheck.java +++ b/velocity/src/main/java/com/github/games647/fastlogin/velocity/task/AsyncPremiumCheck.java @@ -50,7 +50,8 @@ public class AsyncPremiumCheck extends JoinManagement