Make default regex for password characters more user-friendly (#1285)

- Change regex pattern per input of @sgdc3
- Add clarifying comments
This commit is contained in:
ljacqu
2017-07-15 19:38:05 +02:00
committed by Gabriele C
parent 822818cf33
commit 7c48cf59c7
2 changed files with 12 additions and 6 deletions
@@ -156,9 +156,13 @@ public final class RestrictionSettings implements SettingsHolder {
public static final Property<Boolean> NO_TELEPORT =
newProperty("settings.restrictions.noTeleport", false);
@Comment("Regex syntax for allowed chars in passwords")
@Comment({
"Regex syntax for allowed chars in passwords. The default [!-~] allows all visible ASCII",
"characters, which is what we recommend. See also http://asciitable.com",
"You can test your regex with https://regex101.com"
})
public static final Property<String> ALLOWED_PASSWORD_REGEX =
newProperty("settings.restrictions.allowedPasswordCharacters", "[\\x21-\\x7E]*");
newProperty("settings.restrictions.allowedPasswordCharacters", "[!-~]*");
@Comment("Force survival gamemode when player joins?")
public static final Property<Boolean> FORCE_SURVIVAL_MODE =