@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(@NotNull 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 net.mamoe.mirai.contact.MemberPermission permission) |
Deprecated.
|
@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.setUseDefaultConverter(boolean flag) |
|