Class InvalidCommandSenderException

All Implemented Interfaces:
Serializable

@API(status=STABLE) public final class InvalidCommandSenderException extends CommandParseException
Exception thrown when an invalid command sender tries to execute a command
See Also:
  • Constructor Details

  • Method Details

    • requiredSenderTypes

      public @NonNull Set<Type> requiredSenderTypes()
      Returns the required sender types, a sender must satisfy one.
      Returns:
      required sender types
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • command

      @API(status=STABLE) public @Nullable Command<?> command()
      Returns the Command which the sender is invalid for.
      Returns:
      command