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

@ -136,10 +136,11 @@ settings:
# Hide the chat log from players who are not authenticated? # Hide the chat log from players who are not authenticated?
hideChat: false hideChat: false
# 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
@ -165,7 +166,7 @@ settings:
enabled: false enabled: false
# WorldNames where we need to force the spawn location # WorldNames where we need to force the spawn location
# Case-sensitive! # Case-sensitive!
worlds: worlds:
- world - world
- world_nether - world_nether
- world_the_end - world_the_end
@ -268,7 +269,7 @@ settings:
# - '123456' # - '123456'
# - 'password' # - 'password'
# - 'help' # - 'help'
unsafePasswords: unsafePasswords:
- '123456' - '123456'
- password - password
- qwerty - qwerty
@ -374,7 +375,7 @@ Email:
# Delay in minute for the recall scheduler # Delay in minute for the recall scheduler
delayRecall: 5 delayRecall: 5
# Blacklist these domains for emails # Blacklist these domains for emails
emailBlacklisted: emailBlacklisted:
- 10minutemail.com - 10minutemail.com
# Whitelist ONLY these domains for emails # Whitelist ONLY these domains for emails
emailWhitelisted: [] emailWhitelisted: []
@ -410,13 +411,13 @@ Protection:
# https://dev.maxmind.com/geoip/legacy/codes/iso3166/ # https://dev.maxmind.com/geoip/legacy/codes/iso3166/
# Use "LOCALHOST" for local addresses. # Use "LOCALHOST" for local addresses.
# PLEASE USE QUOTES! # PLEASE USE QUOTES!
countries: countries:
- US - US
- GB - GB
- LOCALHOST - LOCALHOST
# Countries not allowed to join the server and register # Countries not allowed to join the server and register
# PLEASE USE QUOTES! # PLEASE USE QUOTES!
countriesBlacklist: countriesBlacklist:
- A1 - A1
# Do we need to enable automatic antibot system? # Do we need to enable automatic antibot system?
enableAntiBot: true enableAntiBot: true

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",