Package net.citizensnpcs.api.command
Class RequirementsProcessor
java.lang.Object
net.citizensnpcs.api.command.RequirementsProcessor
- All Implemented Interfaces:
CommandAnnotationProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> voidprocess(CommandSender sender, CommandContext context, Annotation instance, Object[] methodArgs)
-
Constructor Details
-
RequirementsProcessor
public RequirementsProcessor()
-
-
Method Details
-
getAnnotationClass
- Specified by:
getAnnotationClassin interfaceCommandAnnotationProcessor- Returns:
- The
Annotationclass that this processor will accept.
-
process
public void process(CommandSender sender, CommandContext context, Annotation instance, Object[] methodArgs) throws CommandException - Specified by:
processin interfaceCommandAnnotationProcessor- Parameters:
sender- The command sendercontext- The context of the command, including argumentsinstance- TheAnnotationinstancemethodArgs- The method arguments- Throws:
CommandException- If an exception occurs
-