| 程序包 | 说明 |
|---|---|
| top.focess.qq.api.command | |
| top.focess.qq.api.event.command |
| 限定符和类型 | 方法和说明 |
|---|---|
@NotNull Command.Executor |
Command.addExecutor(int count,
@NotNull CommandExecutor executor,
String... subCommands)
Add default executor to define how to execute this command.
|
@NotNull Command.Executor |
Command.Executor.overrideExecutorPermission(@NotNull java.util.function.Predicate<CommandSender> executorPermission)
Set the executor permission check for this Executor
When execute this Executor, it will only check the executorPermission
|
@NotNull Command.Executor |
Command.Executor.removeExecutorPermission()
Remove the executor permission check for this Executor
|
@NotNull Command.Executor |
Command.Executor.setCommandResultExecutors(@NotNull CommandResult result,
@NotNull CommandResultExecutor executor)
Set the executor of the special CommandResult after executing this Executor
|
@NotNull Command.Executor |
Command.Executor.setDataConverters(DataConverter<?>... dataConverters)
Set the DataConverters for the arguments.
|
@NotNull Command.Executor |
Command.Executor.setExecutorPermission(@NotNull java.util.function.Predicate<CommandSender> executorPermission)
Set the executor permission check for this Executor
When execute this Executor, it will check
Command.executorPermission and the executorPermission |
@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)
|
@NotNull Command.Executor |
Command.Executor.setPermission(@NotNull net.mamoe.mirai.contact.MemberPermission permission)
已过时。
|
@NotNull Command.Executor |
Command.Executor.setUseDefaultConverter(boolean flag)
Set whether force use the
DataConverter.DEFAULT_DATA_CONVERTER or not. |
| 限定符和类型 | 方法和说明 |
|---|---|
Command.Executor |
CommandExecutedEvent.getExecutor() |
| 构造器和说明 |
|---|
CommandExecutedEvent(Command.Executor executor,
@NotNull String[] args,
IOHandler ioHandler,
CommandSender sender,
CommandResult result)
Constructs a CommandExecutedEvent
|
Copyright © 2022. All rights reserved.