From e8a9b5c2e2d7fa88d5940bfc32cc52241f20a40d Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Thu, 4 Feb 2016 23:00:41 +0100 Subject: [PATCH] Add missing setting to the new Settings manager. --- .../xephi/authme/settings/custom/RestrictionSettings.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/settings/custom/RestrictionSettings.java b/src/main/java/fr/xephi/authme/settings/custom/RestrictionSettings.java index 32b68586d..ae5fe63db 100644 --- a/src/main/java/fr/xephi/authme/settings/custom/RestrictionSettings.java +++ b/src/main/java/fr/xephi/authme/settings/custom/RestrictionSettings.java @@ -18,13 +18,19 @@ public class RestrictionSettings implements SettingsClass { public static final Property ALLOW_CHAT = newProperty("settings.restrictions.allowChat", false); + @Comment({ + "Allow unlogged users to use all the commands if registration is not forced!", + "WARNING: use this only if you need it!)"}) + public static final Property ALLOW_ALL_COMMANDS_IF_REGISTRATION_IS_OPTIONAL = + newProperty("settings.restrictions.allowAllCommandsIfRegistrationIsOptional", false); + @Comment("Allowed commands for unauthenticated players") public static final Property> ALLOW_COMMANDS = newProperty(PropertyType.STRING_LIST, "settings.restrictions.allowCommands", "login", "register", "l", "reg", "email", "captcha"); @Comment("Max number of allowed registrations per IP") - // TODO ljacqu 20160109: If 0 == unlimited, add this fact ot the comment + // TODO ljacqu 20160109: If 0 == unlimited, add this fact to the comment public static final Property MAX_REGISTRATION_PER_IP = newProperty("settings.restrictions.maxRegPerIp", 1);