Interface CommandExecutor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback executed once a syntax has been found for a
Command
.
Warning: it could be the default executor from Command.getDefaultExecutor()
if not null.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(@NotNull CommandSender sender, @NotNull CommandContext context) Executes the command callback once the syntax has been called (or the default executor).
-
Method Details
-
apply
Executes the command callback once the syntax has been called (or the default executor).- Parameters:
sender
- the sender of the commandcontext
- the command context, used to retrieve the arguments and various other things
-