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:
2 files changed
+28
-5
No files matched your search
@@ -22,14 +22,19 @@ public class Config {
|
||||
.defineInRange("version", 1, 0, Integer.MAX_VALUE);
|
||||
|
||||
|
||||
public static final ModConfigSpec.ConfigValue<List<? extends String>> BLOCKLIST = BUILDER
|
||||
public static final ModConfigSpec.ConfigValue<List<? extends String>> BLACKLIST = BUILDER
|
||||
.comment("禁用的指令列表")
|
||||
.comment("格式为{cmd/指令}:{checkIndex/禁用第几个参数}:{arg1[,arg2,...]/禁用的参数1[,禁用的参数2,...]}")
|
||||
.comment("格式为{cmd}:{checkIndex}:{arg1[,arg2,...]}")
|
||||
.comment("格式为{指令}:{禁用第几个参数}:禁用的参数1[,禁用的参数2,...]}")
|
||||
.comment("其中{checkIndex}填0代表禁用整个指令")
|
||||
.defineList("blocked_commands", List.of("give:0:", "fill:0:", "gamemode:1:creative"), obj -> obj instanceof String);
|
||||
.defineList("bloaked_commands", List.of("give:0:", "fill:0:", "gamemode:1:creative"), obj -> obj instanceof String);
|
||||
|
||||
|
||||
|
||||
public static final ModConfigSpec.ConfigValue<List<? extends String>> BLACKUUID = BUILDER
|
||||
.comment("不受约束的玩家UUID列表")
|
||||
.defineList("blacked_players", List.of("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"), obj -> obj instanceof String);
|
||||
|
||||
|
||||
public static final ModConfigSpec.ConfigValue<String> BROADCASTMSG = BUILDER
|
||||
.comment("有人作弊时的广播内容")
|
||||
|
||||
Reference in new issue
Block a user