diff options
author | Petr Ilin <hevav@hevav.dev> | 2022-12-30 16:56:13 +0300 |
---|---|---|
committer | Petr Ilin <hevav@hevav.dev> | 2022-12-30 16:56:13 +0300 |
commit | 492aa9818fbbb0c6e0472c5433c54e02e95a229d (patch) | |
tree | d193453aec736ea277def2b0d57e17e84af111da /src/main/java/net/elytrium/limboauth/command/PremiumCommand.java | |
parent | 8886cacd0db218e09aebfe5f44bcfb97e20b914a (diff) | |
download | LimboAuth-492aa9818fbbb0c6e0472c5433c54e02e95a229d.tar.gz LimboAuth-492aa9818fbbb0c6e0472c5433c54e02e95a229d.tar.bz2 LimboAuth-492aa9818fbbb0c6e0472c5433c54e02e95a229d.zip |
More correct premium detection
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/command/PremiumCommand.java')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/command/PremiumCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/elytrium/limboauth/command/PremiumCommand.java b/src/main/java/net/elytrium/limboauth/command/PremiumCommand.java index f4063d7..53cce89 100644 --- a/src/main/java/net/elytrium/limboauth/command/PremiumCommand.java +++ b/src/main/java/net/elytrium/limboauth/command/PremiumCommand.java @@ -77,7 +77,7 @@ public class PremiumCommand implements SimpleCommand { } else if (player.getHash().isEmpty()) { source.sendMessage(this.alreadyPremium); } else if (AuthSessionHandler.checkPassword(args[0], player, this.playerDao)) { - if (this.plugin.isPremiumExternal(username.toLowerCase(Locale.ROOT)).getState() == LimboAuth.PremiumState.PREMIUM) { + if (this.plugin.isPremiumExternal(username.toLowerCase(Locale.ROOT)).getState() == LimboAuth.PremiumState.PREMIUM_USERNAME) { try { player.setHash(""); this.playerDao.update(player); |