diff options
-rw-r--r-- | src/main/java/net/elytrium/limboauth/LimboAuth.java | 4 | ||||
-rw-r--r-- | src/main/java/net/elytrium/limboauth/Settings.java | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java index 8a471ca..2530ef9 100644 --- a/src/main/java/net/elytrium/limboauth/LimboAuth.java +++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java @@ -451,6 +451,10 @@ public class LimboAuth { } public boolean isPremium(String nickname) { + if (Settings.IMP.MAIN.FORCE_OFFLINE_MODE) { + return false; + } + try { if (this.isPremiumExternal(nickname)) { QueryBuilder<RegisteredPlayer, String> premiumRegisteredQuery = this.playerDao.queryBuilder(); diff --git a/src/main/java/net/elytrium/limboauth/Settings.java b/src/main/java/net/elytrium/limboauth/Settings.java index 825ce61..997cff4 100644 --- a/src/main/java/net/elytrium/limboauth/Settings.java +++ b/src/main/java/net/elytrium/limboauth/Settings.java @@ -52,6 +52,9 @@ public class Settings extends Config { public boolean ONLINE_MODE_NEED_AUTH = true; @Comment("Needs floodgate plugin.") public boolean FLOODGATE_NEED_AUTH = true; + @Comment("TOTALLY disables hybrid auth feature") + public boolean FORCE_OFFLINE_MODE = false; + @Comment("Forces all players to get offline uuid") public boolean FORCE_OFFLINE_UUID = false; @Comment("Delay in milliseconds before sending auth-confirming titles and messages to the player. (login-premium-title, login-floodgate, etc.)") public int PREMIUM_AND_FLOODGATE_MESSAGES_DELAY = 1250; |