From 8886cacd0db218e09aebfe5f44bcfb97e20b914a Mon Sep 17 00:00:00 2001 From: Petr Ilin Date: Fri, 30 Dec 2022 16:01:12 +0300 Subject: Do not kick floodgate players with forced offline mode --- src/main/java/net/elytrium/limboauth/LimboAuth.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java index c98497f..dd4bdd8 100644 --- a/src/main/java/net/elytrium/limboauth/LimboAuth.java +++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java @@ -504,7 +504,8 @@ public class LimboAuth { } public void authPlayer(Player player) { - if (this.isForcedPreviously(player.getUsername()) && this.isPremium(player.getUsername())) { + boolean isFloodgate = !Settings.IMP.MAIN.FLOODGATE_NEED_AUTH && this.floodgateApi.isFloodgatePlayer(player.getUniqueId()); + if (!isFloodgate && this.isForcedPreviously(player.getUsername()) && this.isPremium(player.getUsername())) { player.disconnect(this.reconnectKick); return; } @@ -514,7 +515,6 @@ public class LimboAuth { return; } - boolean isFloodgate = !Settings.IMP.MAIN.FLOODGATE_NEED_AUTH && this.floodgateApi.isFloodgatePlayer(player.getUniqueId()); String nickname = player.getUsername(); if (!this.nicknameValidationPattern.matcher((isFloodgate) ? nickname.substring(this.floodgateApi.getPrefixLength()) : nickname).matches()) { player.disconnect(this.nicknameInvalidKick); -- cgit