diff options
-rw-r--r-- | src/main/java/net/elytrium/limboauth/listener/AuthListener.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/net/elytrium/limboauth/listener/AuthListener.java b/src/main/java/net/elytrium/limboauth/listener/AuthListener.java index 6e6e124..93f1bc1 100644 --- a/src/main/java/net/elytrium/limboauth/listener/AuthListener.java +++ b/src/main/java/net/elytrium/limboauth/listener/AuthListener.java @@ -64,9 +64,9 @@ public class AuthListener { } @Subscribe - public void onPreLoginEvent(PreLoginEvent event) throws Throwable { + public void onPreLoginEvent(PreLoginEvent event) { if (!event.getResult().isForceOfflineMode()) { - if (this.isPremiumByIdentifiedKey(event.getConnection()) || this.plugin.isPremium(event.getUsername())) { + if (this.plugin.isPremium(event.getUsername())) { event.setResult(PreLoginEvent.PreLoginComponentResult.forceOnlineMode()); } else { event.setResult(PreLoginEvent.PreLoginComponentResult.forceOfflineMode()); @@ -76,6 +76,7 @@ public class AuthListener { } } + // Temporarily disabled because some clients send UUID version 4 (random UUID) even if the player is cracked private boolean isPremiumByIdentifiedKey(InboundConnection inbound) throws Throwable { LoginInboundConnection inboundConnection = (LoginInboundConnection) inbound; InitialInboundConnection initialInbound = (InitialInboundConnection) DELEGATE_FIELD.invokeExact(inboundConnection); |