[功能] 添加白名单(玩家是否注册)

玩家添加authme.whitelist权限来忽略白名单
This commit is contained in:
Sattera
2023-06-24 13:09:17 +08:00
parent 7e5d9ed1e8
commit b1bee0967c
10 changed files with 159 additions and 2 deletions
@@ -19,7 +19,9 @@ public final class ProtectionSettings implements SettingsHolder {
@Comment("Apply the protection also to registered usernames")
public static final Property<Boolean> ENABLE_PROTECTION_REGISTERED =
newProperty("Protection.enableProtectionRegistered", true);
@Comment("Only allow registed usernames join server")
public static final Property<Boolean> ENABLE_WHITELIST =
newProperty("Protection.enableWhiteList", true);
@Comment({
"Countries allowed to join the server and register. For country codes, see",
"https://dev.maxmind.com/geoip/legacy/codes/iso3166/",