Detect Geyser connections at packet level

It is possible to use Geyser without Floodgate by configuring Geyser to
use auth-type= 'online' or 'offline'. In that scenario, floodgateService
will be either unavailable or empty.
This commit is contained in:
Smart123s authored and games647 committed 2021-11-28 13:44:57 +01:00
1 parent 3ee6cb2ada
commit f570474fa3
5 files changed
+15 -5

No files matched your search

@@ -49,7 +49,8 @@ public class AsyncPremiumCheck extends JoinManagement<ProxiedPlayer, CommandSend
public AsyncPremiumCheck(FastLoginBungee plugin, PreLoginEvent preLoginEvent, PendingConnection connection,
String username) {
super(plugin.getCore(), plugin.getCore().getAuthPluginHook(), plugin.getFloodgateService());
super(plugin.getCore(), plugin.getCore().getAuthPluginHook(), plugin.getFloodgateService(),
plugin.getGeyserService());
this.plugin = plugin;
this.preLoginEvent = preLoginEvent;