Skip to content

Commit 907c646

Browse files
committed
Temporarily disable isPremiumByIdentifiedKey because some clients send UUID version 4 (random UUID) even if the player is cracked
1 parent 9c74c5c commit 907c646

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/net/elytrium/limboauth/listener/AuthListener.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ public AuthListener(LimboAuth plugin, Dao<RegisteredPlayer, String> playerDao, F
6464
}
6565

6666
@Subscribe
67-
public void onPreLoginEvent(PreLoginEvent event) throws Throwable {
67+
public void onPreLoginEvent(PreLoginEvent event) {
6868
if (!event.getResult().isForceOfflineMode()) {
69-
if (this.isPremiumByIdentifiedKey(event.getConnection()) || this.plugin.isPremium(event.getUsername())) {
69+
if (this.plugin.isPremium(event.getUsername())) {
7070
event.setResult(PreLoginEvent.PreLoginComponentResult.forceOnlineMode());
7171
} else {
7272
event.setResult(PreLoginEvent.PreLoginComponentResult.forceOfflineMode());
@@ -76,6 +76,7 @@ public void onPreLoginEvent(PreLoginEvent event) throws Throwable {
7676
}
7777
}
7878

79+
// Temporarily disabled because some clients send UUID version 4 (random UUID) even if the player is cracked
7980
private boolean isPremiumByIdentifiedKey(InboundConnection inbound) throws Throwable {
8081
LoginInboundConnection inboundConnection = (LoginInboundConnection) inbound;
8182
InitialInboundConnection initialInbound = (InitialInboundConnection) DELEGATE_FIELD.invokeExact(inboundConnection);

0 commit comments

Comments
 (0)