45 lines
1.8 KiB
Java
45 lines
1.8 KiB
Java
package fr.xephi.authme.settings.properties;
|
|
|
|
import fr.xephi.authme.settings.domain.Comment;
|
|
import fr.xephi.authme.settings.domain.Property;
|
|
import fr.xephi.authme.settings.domain.SettingsClass;
|
|
|
|
import java.util.List;
|
|
|
|
import static fr.xephi.authme.settings.domain.Property.newListProperty;
|
|
import static fr.xephi.authme.settings.domain.Property.newProperty;
|
|
|
|
|
|
public class ProtectionSettings implements SettingsClass {
|
|
|
|
@Comment("Enable some servers protection (country based login, antibot)")
|
|
public static final Property<Boolean> ENABLE_PROTECTION =
|
|
newProperty("Protection.enableProtection", false);
|
|
|
|
@Comment({"Countries allowed to join the server and register, see http://dev.bukkit.org/bukkit-plugins/authme-reloaded/pages/countries-codes/ for countries' codes",
|
|
"PLEASE USE QUOTES!"})
|
|
public static final Property<List<String>> COUNTRIES_WHITELIST =
|
|
newListProperty("Protection.countries", "US", "GB");
|
|
|
|
@Comment({"Countries not allowed to join the server and register",
|
|
"PLEASE USE QUOTES!"})
|
|
public static final Property<List<String>> COUNTRIES_BLACKLIST =
|
|
newListProperty("Protection.countriesBlacklist", "A1");
|
|
|
|
@Comment("Do we need to enable automatic antibot system?")
|
|
public static final Property<Boolean> ENABLE_ANTIBOT =
|
|
newProperty("Protection.enableAntiBot", true);
|
|
|
|
@Comment("Max number of players allowed to login in 5 secs before the AntiBot system is enabled automatically")
|
|
public static final Property<Integer> ANTIBOT_SENSIBILITY =
|
|
newProperty("Protection.antiBotSensibility", 10);
|
|
|
|
@Comment("Duration in minutes of the antibot automatic system")
|
|
public static final Property<Integer> ANTIBOT_DURATION =
|
|
newProperty("Protection.antiBotDuration", 10);
|
|
|
|
private ProtectionSettings() {
|
|
}
|
|
|
|
}
|