From fa9cba99bbf2e907a869525e8c0e3d4936389470 Mon Sep 17 00:00:00 2001 From: Micle Date: Tue, 24 May 2022 00:26:27 +0100 Subject: [PATCH] Lowered limit for the afk time threshold option as it needs to be converted into ticks later. --- src/main/java/dev/micle/loginprotection/setup/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/micle/loginprotection/setup/Config.java b/src/main/java/dev/micle/loginprotection/setup/Config.java index 1027e94..d4cb02e 100644 --- a/src/main/java/dev/micle/loginprotection/setup/Config.java +++ b/src/main/java/dev/micle/loginprotection/setup/Config.java @@ -68,7 +68,7 @@ public final class Config { .define("enabled", true); AFK_TIME_THRESHOLD = builder .comment("How long a player needs to be afk to become protected. (seconds)") - .defineInRange("timeThreshold", 600, 1, Integer.MAX_VALUE); + .defineInRange("timeThreshold", 600, 1, Integer.MAX_VALUE/20); AFK_APPLY_POST_EFFECTS = builder .comment("Whether to apply any post protection effects to afk players.") .define("applyPostProtectionEffects", false);