From 907c646e9c93bb1e15d8ee919621b397ee090a7e Mon Sep 17 00:00:00 2001 From: Petr Ilin Date: Tue, 3 Jan 2023 14:11:17 +0300 Subject: Temporarily disable isPremiumByIdentifiedKey because some clients send UUID version 4 (random UUID) even if the player is cracked --- src/main/java/net/elytrium/limboauth/listener/AuthListener.java | 5 +++-- 1 file 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); -- cgit