Uses of Class
top.focess.qq.api.command.CommandPermission
-
Packages that use CommandPermission Package Description top.focess.qq.api.command -
-
Uses of CommandPermission in top.focess.qq.api.command
Methods in top.focess.qq.api.command that return CommandPermission Modifier and Type Method Description CommandPermissionCommand. getPermission()@NonNull CommandPermissionCommandSender. getPermission()Get permissionstatic CommandPermissionCommandPermission. toCommandPermission(net.mamoe.mirai.contact.MemberPermission permission)static CommandPermissionCommandPermission. valueOf(String name)Returns the enum constant of this type with the specified name.static CommandPermission[]CommandPermission. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in top.focess.qq.api.command with parameters of type CommandPermission Modifier and Type Method Description booleanCommandPermission. hasPermission(CommandPermission permission)booleanCommandSender. hasPermission(CommandPermission permission)Indicate whether this CommandSender owns the permissionCommand.ExecutorCommand.Executor. setPermission(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)voidCommand. setPermission(CommandPermission permission)Set the default permission
-