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