mirror of
https://github.com/xzb23/Minecraft-Command-Permission-Control.git
synced 2026-11-22 08:44:36 +08:00
支持I18n/L10n
This commit is contained in:
6 files changed
+65
-24
No files matched your search
@@ -21,21 +21,10 @@ public class Config {
|
||||
.defineList("blacked_commands", List.of("give:0:", "fill:0:", "gamemode:1:creative"), obj -> obj instanceof String);
|
||||
|
||||
|
||||
|
||||
public static final ModConfigSpec.ConfigValue<List<? extends String>> PASSUUID = BUILDER
|
||||
.comment("不受约束的玩家UUID列表")
|
||||
.defineList("pass_users", List.of("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"), obj -> obj instanceof String);
|
||||
|
||||
|
||||
public static final ModConfigSpec.ConfigValue<String> CHEATBROADCASTMSG = BUILDER
|
||||
.comment("有人作弊时的广播内容")
|
||||
.define("cheatmsg", "§c不准作弊哦(>v0");
|
||||
|
||||
|
||||
public static final ModConfigSpec.ConfigValue<String> RELOADBROADCASTMSG = BUILDER
|
||||
.comment("重载配置时的广播内容")
|
||||
.define("reloadmsg", "配置重载完成");
|
||||
|
||||
|
||||
static final ModConfigSpec SPEC = BUILDER.build();
|
||||
}
|
||||
Reference in new issue
Block a user