diff --git a/docs/插件/权限组/_images/command.png b/docs/插件/权限组/_images/command.png new file mode 100644 index 000000000..761213fcb Binary files /dev/null and b/docs/插件/权限组/_images/command.png differ diff --git a/docs/插件/权限组/_images/editor.png b/docs/插件/权限组/_images/editor.png new file mode 100644 index 000000000..0d7cb92b2 Binary files /dev/null and b/docs/插件/权限组/_images/editor.png differ diff --git a/docs/插件/权限组/_images/on.png b/docs/插件/权限组/_images/on.png new file mode 100644 index 000000000..60d68494e Binary files /dev/null and b/docs/插件/权限组/_images/on.png differ diff --git a/docs/插件/权限组/_images/paste-1.png b/docs/插件/权限组/_images/paste-1.png new file mode 100644 index 000000000..3845088be Binary files /dev/null and b/docs/插件/权限组/_images/paste-1.png differ diff --git a/docs/插件/权限组/_images/paste-2.png b/docs/插件/权限组/_images/paste-2.png new file mode 100644 index 000000000..790c87cc8 Binary files /dev/null and b/docs/插件/权限组/_images/paste-2.png differ diff --git a/docs/插件/权限组/什么是权限.md b/docs/插件/权限组/什么是权限.md new file mode 100644 index 000000000..f6f0237cb --- /dev/null +++ b/docs/插件/权限组/什么是权限.md @@ -0,0 +1,40 @@ +--- +sidebar_position: 2 +--- + +# 什么是权限 + +举个栗子,你想要执行essentials插件的tpa命令,那么你需要 `essentials.tpa `这个权限 + +## 权限节点 + +形如 xxx.xxx 或者 xxx.xxx.xxx + +比如上面提到的essentials.tpa 我们称为权限节点 + +(当然你别认为所有xxx.xxx都是权限节点) + +权限节点一般第一个 xxx 是插件名 + + +## 权限的状态 + +权限有三种状态 + +| 状态 | 描述 | +| --- | --- | +|true | 允许 | +|false | 禁止 | +|undefined | 未设置 | + +> true 和false好理解,那undefined是什么? + +如果这个权限没有被权限组插件设置,就是插件自己判断了 + +还是啃上面tpa的栗子,`essentials.tpa`是玩家是默认没有的 + +如果你在没有对这个权限进行设置,执行/tpa会被拒绝 + +### op是不是拥有所有权限 + +当然了。。。不过你可以给这名op玩家明确设置某权限是false \ No newline at end of file diff --git a/docs/插件/权限组/命令篇.md b/docs/插件/权限组/命令篇.md new file mode 100644 index 000000000..7465d3e10 --- /dev/null +++ b/docs/插件/权限组/命令篇.md @@ -0,0 +1,40 @@ +--- +sidebar_position: 4 +--- + +# 命令篇 + + +## 权限组 + +### 创建 +``` +lp creategroup 权限组名 +``` + +### 删除 +``` +lp deletegroup 权限组名 +``` + +## 权限 + +### 设置某个玩家/权限组的某权限为 true/false +``` +lp user/group 玩家/权限组名 permission set 权限节点 true/false +``` + +### 移除某个玩家/权限组的某权限的设置 +``` +lp user/group 玩家/权限组名 permission unset 权限节点 +``` + +### 检查某个玩家/权限组的权限状态 +``` +lp user/group 玩家/权限组名 permission check 权限节点 +``` + +### 列出某个玩家/权限组的权限 +``` +lp user/group 玩家/权限组名 permission info +``` diff --git a/docs/插件/权限组/小妙招.md b/docs/插件/权限组/小妙招.md new file mode 100644 index 000000000..2895479f4 --- /dev/null +++ b/docs/插件/权限组/小妙招.md @@ -0,0 +1,52 @@ +--- +sidebar_position: 5 +--- + +# 小妙招 + +## 网页版可视化编辑器 +``` +lp editor +``` + +![](_images/editor.png) + +## 日志 + +可以实时打印权限检查情况 方便排查问题 + +``` +lp verbose [filter] +``` + +### 解释 + +- `on` - 开启权限检查 +- `off` - 关闭权限检查 +- `record` - 记录日志 +- `paste` - 停止记录,显示日志 + +#### on + +![](_images/on.png) + +#### paste +![](_images/paste-1.png) + +![](_images/paste-2.png) + +### 例子 + +- `Luck & (essentials | worldedit)` - 匹配 'essentials'和'worldedit' 开头的权限检查 +- `!Luck & !anticheat` - 匹配除了 'Luck' 和 'anticheat' 开头以外的权限检查 +- `anticheat & !anticheat.check` - 匹配以'anticheat' 开头 但不匹配 'anticheat.check' 开头的权限检查 + +## 执行命令 + +让玩家执行命令,并打印此命令的权限检查 + +``` +/lp verbose command +``` + +![](_images/command.png) \ No newline at end of file diff --git a/docs/插件/权限组/概览.md b/docs/插件/权限组/概览.md index 479c3c24c..6188ec4f6 100644 --- a/docs/插件/权限组/概览.md +++ b/docs/插件/权限组/概览.md @@ -2,4 +2,20 @@ sidebar_position: 1 --- -TODO \ No newline at end of file +# LuckPerms +> `官网` :https://luckperms.net/ +> +> `spigotmc` :https://www.spigotmc.org/resources/luckperms.28140/ +> +> `GitHub` :https://github.com/LuckPerms/LuckPerms +> +> `插件百科` :https://mineplugin.org/LuckPerms + +**不建议使用**Luckperms以外的权限插件如: + +- GroupManager +- zPermissions +- PermissionsEx +- PowerfulPerms +- BungeePerms +- bPermissions \ No newline at end of file diff --git a/docs/插件/权限组/用户组.md b/docs/插件/权限组/用户组.md new file mode 100644 index 000000000..a907af32b --- /dev/null +++ b/docs/插件/权限组/用户组.md @@ -0,0 +1,11 @@ +--- +sidebar_position: 3 +--- + +# 用户组 + +TODO + +### default + +default lp插件 玩家默认继承的权限组