Interface CommandCallback

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 CommandCallback
Functional interface used by the CommandManager to execute a callback if an unknown command is run. You can set it with CommandManager.setUnknownCommandCallback(CommandCallback).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(@NotNull CommandSender sender, @NotNull String command)
    Executed if an unknown command is run.
  • Method Details

    • apply

      void apply(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String command)
      Executed if an unknown command is run.
      Parameters:
      sender - the command sender
      command - the complete command string