Added /log command to the allowCommands sequence (#2290)

This commit is contained in:
Eric-01 2021-03-14 02:53:00 +01:00 committed by GitHub
parent f2bdaa0454
commit 4e55f26a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -138,8 +138,9 @@ settings:
# Allowed commands for unauthenticated players # Allowed commands for unauthenticated players
allowCommands: allowCommands:
- /login - /login
- /register - /log
- /l - /l
- /register
- /reg - /reg
- /email - /email
- /captcha - /captcha

View File

@ -27,7 +27,7 @@ public final class RestrictionSettings implements SettingsHolder {
@Comment("Allowed commands for unauthenticated players") @Comment("Allowed commands for unauthenticated players")
public static final Property<Set<String>> ALLOW_COMMANDS = public static final Property<Set<String>> ALLOW_COMMANDS =
newLowercaseStringSetProperty("settings.restrictions.allowCommands", newLowercaseStringSetProperty("settings.restrictions.allowCommands",
"/login", "/register", "/l", "/reg", "/email", "/captcha", "/2fa", "/totp"); "/login", "/log", "/l", "/register", "/reg", "/email", "/captcha", "/2fa", "/totp");
@Comment({ @Comment({
"Max number of allowed registrations per IP", "Max number of allowed registrations per IP",