Interface CommandHandler

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 CommandHandler
Functional interface for simple command handlers.
  • Method Details

    • handle

      @Nonnull CommandResult handle(@Nonnull CommandSource source, @Nonnull String[] args)
      Handle a command execution.
      Parameters:
      source - the command source
      args - the arguments passed to the command
      Returns:
      the result of the command