#826 add setting to define the antibot interval

This commit is contained in:
Gabriele C
2016-10-23 22:05:07 +02:00
parent 50610f6305
commit 31d8b38fe5
3 changed files with 9 additions and 2 deletions
@@ -37,8 +37,12 @@ public class ProtectionSettings implements SettingsHolder {
public static final Property<Boolean> ENABLE_ANTIBOT =
newProperty("Protection.enableAntiBot", true);
@Comment("The interval in seconds")
public static final Property<Integer> ANTIBOT_INTERVAL =
newProperty("Protection.antiBotInterval", 5);
@Comment({
"Max number of players allowed to login in 5 secs",
"Max number of players allowed to login in the interval",
"before the AntiBot system is enabled automatically"})
public static final Property<Integer> ANTIBOT_SENSIBILITY =
newProperty("Protection.antiBotSensibility", 10);