diff options
author | Petr Ilin <hevav@hevav.dev> | 2023-01-03 14:11:17 +0300 |
---|---|---|
committer | Petr Ilin <hevav@hevav.dev> | 2023-01-03 14:11:17 +0300 |
commit | 907c646e9c93bb1e15d8ee919621b397ee090a7e (patch) | |
tree | 5e64da2b9b35bce0c4bb0dd57884583be86315bd /src | |
parent | 9c74c5ca301647c125084cdc1ae7529a880b6713 (diff) | |
download | LimboAuth-907c646e9c93bb1e15d8ee919621b397ee090a7e.tar.gz LimboAuth-907c646e9c93bb1e15d8ee919621b397ee090a7e.tar.bz2 LimboAuth-907c646e9c93bb1e15d8ee919621b397ee090a7e.zip |
Temporarily disable isPremiumByIdentifiedKey because some clients send UUID version 4 (random UUID) even if the player is cracked
Diffstat (limited to 'src')
-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); |