mirror of
https://github.com/xzb23/Minecraft-Command-Permission-Control.git
synced 2026-11-22 08:44:36 +08:00
重命名不合适标识符
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -23,7 +23,7 @@ public class CommandInterceptor {
|
||||
|
||||
// 从Mod配置获取黑名单列表
|
||||
private static List<List<String>> blackList = initblackList(new ArrayList<>(Config.BLACKLIST.get()));
|
||||
private static List<String> opUUID = Config.BLACKUUID.get().stream()
|
||||
private static List<String> opUUID = Config.PASSUUID.get().stream()
|
||||
.map(s -> s.toLowerCase(Locale.ROOT))
|
||||
.toList();
|
||||
|
||||
|
||||
@@ -22,9 +22,9 @@ public class Config {
|
||||
|
||||
|
||||
|
||||
public static final ModConfigSpec.ConfigValue<List<? extends String>> BLACKUUID = BUILDER
|
||||
public static final ModConfigSpec.ConfigValue<List<? extends String>> PASSUUID = BUILDER
|
||||
.comment("不受约束的玩家UUID列表")
|
||||
.defineList("blacked_players", List.of("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"), obj -> obj instanceof String);
|
||||
.defineList("pass_users", List.of("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"), obj -> obj instanceof String);
|
||||
|
||||
|
||||
public static final ModConfigSpec.ConfigValue<String> BROADCASTMSG = BUILDER
|
||||
|
||||
Reference in new issue
Block a user