forked from mirror/NitWikit
+ 插件luckperms
This commit is contained in:
parent
344e1aeed7
commit
f7779f4230
BIN
docs/插件/权限组/_images/command.png
Normal file
BIN
docs/插件/权限组/_images/command.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
docs/插件/权限组/_images/editor.png
Normal file
BIN
docs/插件/权限组/_images/editor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 104 KiB |
BIN
docs/插件/权限组/_images/on.png
Normal file
BIN
docs/插件/权限组/_images/on.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
BIN
docs/插件/权限组/_images/paste-1.png
Normal file
BIN
docs/插件/权限组/_images/paste-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
BIN
docs/插件/权限组/_images/paste-2.png
Normal file
BIN
docs/插件/权限组/_images/paste-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 134 KiB |
40
docs/插件/权限组/什么是权限.md
Normal file
40
docs/插件/权限组/什么是权限.md
Normal file
@ -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
|
40
docs/插件/权限组/命令篇.md
Normal file
40
docs/插件/权限组/命令篇.md
Normal file
@ -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
|
||||
```
|
52
docs/插件/权限组/小妙招.md
Normal file
52
docs/插件/权限组/小妙招.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# 小妙招
|
||||
|
||||
## 网页版可视化编辑器
|
||||
```
|
||||
lp editor
|
||||
```
|
||||
|
||||
![](_images/editor.png)
|
||||
|
||||
## 日志
|
||||
|
||||
可以实时打印权限检查情况 方便排查问题
|
||||
|
||||
```
|
||||
lp verbose <on|record|off|upload> [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 <me|player> <command>
|
||||
```
|
||||
|
||||
![](_images/command.png)
|
@ -2,4 +2,20 @@
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
TODO
|
||||
# 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
|
11
docs/插件/权限组/用户组.md
Normal file
11
docs/插件/权限组/用户组.md
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# 用户组
|
||||
|
||||
TODO
|
||||
|
||||
### default
|
||||
|
||||
default lp插件 玩家默认继承的权限组
|
Loading…
Reference in New Issue
Block a user