From 2a534718fd0adcd96ffb798551044ba7cd88f533 Mon Sep 17 00:00:00 2001 From: canglan Date: Tue, 21 Jul 2026 15:43:05 +0800 Subject: [PATCH] refactor: plugin permissions to SeaStudio.Report.* namespace --- mc-report-plugin/README.md | 12 ++++++++++++ mc-report-plugin/src/main/resources/config.yml | 4 +--- mc-report-plugin/src/main/resources/plugin.yml | 5 ++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/mc-report-plugin/README.md b/mc-report-plugin/README.md index 9a34044..9a299c9 100644 --- a/mc-report-plugin/README.md +++ b/mc-report-plugin/README.md @@ -24,6 +24,18 @@ external_key: "你的external_api_key" external_api_key 在 Web 安装时自动生成,位于 `data/config.json` +## 权限 + +| 节点 | 默认 | 说明 | +|------|------|------| +| `SeaStudio.Report.use` | true | 使用举报命令 | +| `SeaStudio.Report.admin` | op | 管理员标识 | + +LP 命令: +``` +lp group admin permission set SeaStudio.Report.admin true +``` + ## 命令 | 命令 | 说明 | diff --git a/mc-report-plugin/src/main/resources/config.yml b/mc-report-plugin/src/main/resources/config.yml index 501570b..0efe26a 100644 --- a/mc-report-plugin/src/main/resources/config.yml +++ b/mc-report-plugin/src/main/resources/config.yml @@ -5,9 +5,7 @@ external_key: "" # 管理权限检测 - 拥有以下任一权限的在线玩家视为管理员 admin_permissions: - "op" - - "mcreport.admin" - - "bukkit.command.ban" - - "minecraft.command.ban" + - "SeaStudio.Report.admin" # 踢出提示 appeal_url: "http://localhost:3100/#/home/appeal" diff --git a/mc-report-plugin/src/main/resources/plugin.yml b/mc-report-plugin/src/main/resources/plugin.yml index cff75c9..011d61d 100644 --- a/mc-report-plugin/src/main/resources/plugin.yml +++ b/mc-report-plugin/src/main/resources/plugin.yml @@ -18,6 +18,9 @@ commands: aliases: [jubao,举报] permissions: - mcreport.use: + SeaStudio.Report.use: description: Use report functions default: true + SeaStudio.Report.admin: + description: Identifies as report admin + default: op