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.

@FunctionalInterface public interface CommandExecutor
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 Type
    Method
    Description
    void
    apply(@NotNull CommandSender sender, @NotNull CommandContext context)
    Executes the command callback once the syntax has been called (or the default executor).
  • Method Details

    • apply

      void apply(@NotNull @NotNull CommandSender sender, @NotNull @NotNull CommandContext context)
      Executes the command callback once the syntax has been called (or the default executor).
      Parameters:
      sender - the sender of the command
      context - the command context, used to retrieve the arguments and various other things