refactor: plugin permissions to SeaStudio.Report.* namespace
This commit is contained in:
@@ -24,6 +24,18 @@ external_key: "你的external_api_key"
|
|||||||
|
|
||||||
external_api_key 在 Web 安装时自动生成,位于 `data/config.json`
|
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
|
||||||
|
```
|
||||||
|
|
||||||
## 命令
|
## 命令
|
||||||
|
|
||||||
| 命令 | 说明 |
|
| 命令 | 说明 |
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ external_key: ""
|
|||||||
# 管理权限检测 - 拥有以下任一权限的在线玩家视为管理员
|
# 管理权限检测 - 拥有以下任一权限的在线玩家视为管理员
|
||||||
admin_permissions:
|
admin_permissions:
|
||||||
- "op"
|
- "op"
|
||||||
- "mcreport.admin"
|
- "SeaStudio.Report.admin"
|
||||||
- "bukkit.command.ban"
|
|
||||||
- "minecraft.command.ban"
|
|
||||||
|
|
||||||
# 踢出提示
|
# 踢出提示
|
||||||
appeal_url: "http://localhost:3100/#/home/appeal"
|
appeal_url: "http://localhost:3100/#/home/appeal"
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ commands:
|
|||||||
aliases: [jubao,举报]
|
aliases: [jubao,举报]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
mcreport.use:
|
SeaStudio.Report.use:
|
||||||
description: Use report functions
|
description: Use report functions
|
||||||
default: true
|
default: true
|
||||||
|
SeaStudio.Report.admin:
|
||||||
|
description: Identifies as report admin
|
||||||
|
default: op
|
||||||
|
|||||||
Reference in New Issue
Block a user