| 程序包 | 说明 |
|---|---|
| top.focess.qq.api.command |
| 限定符和类型 | 方法和说明 |
|---|---|
@NonNull CommandPermission |
CommandSender.getPermission()
Get permission
|
@NotNull CommandPermission |
Command.getPermission() |
static CommandPermission |
CommandPermission.toCommandPermission(net.mamoe.mirai.contact.MemberPermission permission) |
static CommandPermission |
CommandPermission.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CommandPermission[] |
CommandPermission.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
CommandSender.hasPermission(CommandPermission permission)
Indicate whether this CommandSender owns the permission
|
boolean |
CommandPermission.hasPermission(CommandPermission permission) |
void |
Command.setPermission(CommandPermission permission)
Set the default permission
|
@NotNull Command.Executor |
Command.Executor.setPermission(@NotNull CommandPermission permission)
Set the executor Mirai Permission
(Only if the CommandSender has the command that this executor belongs to and this executor's permissions, this executor runs)
|
Copyright © 2022. All rights reserved.