Skip to content

Commit

Permalink
Use non-strict hybrid-auth only if the player doesn't exists in the d…
Browse files Browse the repository at this point in the history
…atabase
  • Loading branch information
UserNugget committed Jun 16, 2024
1 parent 40d75f4 commit 84ee6b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void onPreLoginEvent(PreLoginEvent event) {
CachedPremiumUser premiumUser = this.plugin.getPremiumCache(username);
MinecraftConnection connection = this.getConnection(event.getConnection());
if (!connection.isClosed() && premiumUser != null && !premiumUser.isForcePremium()
&& this.plugin.isPremiumInternal(username).getState() != PremiumState.PREMIUM) {
&& this.plugin.isPremiumInternal(username).getState() == PremiumState.UNKNOWN) {
this.plugin.getPendingLogins().add(username);

// As Velocity doesnt have any events for our usecase, just inject into netty
Expand Down

0 comments on commit 84ee6b7

Please sign in to comment.