Explorar o código

Kick interval can be disabled with '-1'

Fixes #1356
TfT_02 %!s(int64=12) %!d(string=hai) anos
pai
achega
fcb8909a54
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/main/java/com/gmail/nossr50/config/Config.java

+ 2 - 2
src/main/java/com/gmail/nossr50/config/Config.java

@@ -103,8 +103,8 @@ public class Config extends AutoUpdateConfigLoader {
         }
 
         /* PARTY SETTINGS */
-        if (getAutoPartyKickInterval() < 0) {
-            reason.add("Party.AutoKick_Interval should be at least 0!");
+        if (getAutoPartyKickInterval() < -1) {
+            reason.add("Party.AutoKick_Interval should be at least -1!");
         }
 
         if (getAutoPartyKickTime() < 0) {