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