mirror of
https://github.com/xzb23/Minecraft-Command-Permission-Control.git
synced 2026-11-22 00:34:36 +08:00
重命名不合适标识符
This commit is contained in:
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -32,7 +32,7 @@ mod_name=stopcheat
|
||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||
mod_license=MIT License
|
||||
# The mod version. See https://semver.org/
|
||||
mod_version=1.0.1
|
||||
mod_version=1.0.11
|
||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
||||
@@ -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