Class NoPermissionException

All Implemented Interfaces:
Serializable

public class NoPermissionException extends CommandParseException
Exception thrown when a command sender misses a permission required to execute a Command
See Also:
Serialized Form
  • Constructor Details

    • NoPermissionException

      public NoPermissionException(@NonNull CommandPermission missingPermission, @NonNull Object commandSender, @NonNull List<@NonNull CommandArgument<?,​?>> currentChain)
      Construct a new no permission exception
      Parameters:
      missingPermission - Missing permission node
      commandSender - Command sender
      currentChain - Chain leading up to the exception
  • Method Details