Class CommandCooldownInterceptor
java.lang.Object
tech.guilhermekaua.spigotboot.commands.cooldown.CommandCooldownInterceptor
- All Implemented Interfaces:
CommandAnnotationInterceptor<Cooldown>,Ordered
public class CommandCooldownInterceptor
extends Object
implements CommandAnnotationInterceptor<Cooldown>
-
Constructor Summary
ConstructorsConstructorDescriptionCommandCooldownInterceptor(CooldownManager cooldownManager, CommandMessagesProvider commandMessagesProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidafter(Cooldown annotation, CommandExecutionContext context, CommandInvocationPlan invocation, Object result) before(Cooldown annotation, CommandExecutionContext context, CommandInvocationPlan invocation) intgetOrder()voidonError(Cooldown annotation, CommandExecutionContext context, CommandInvocationPlan invocation, Throwable throwable) voidvalidate(Cooldown annotation, Context context, CommandInvocationPlan invocation)
-
Constructor Details
-
CommandCooldownInterceptor
public CommandCooldownInterceptor(CooldownManager cooldownManager, CommandMessagesProvider commandMessagesProvider)
-
-
Method Details
-
getOrder
public int getOrder() -
validate
- Specified by:
validatein interfaceCommandAnnotationInterceptor<Cooldown>
-
before
public CommandExecutionDecision before(Cooldown annotation, CommandExecutionContext context, CommandInvocationPlan invocation) - Specified by:
beforein interfaceCommandAnnotationInterceptor<Cooldown>
-
after
public void after(Cooldown annotation, CommandExecutionContext context, CommandInvocationPlan invocation, Object result) - Specified by:
afterin interfaceCommandAnnotationInterceptor<Cooldown>
-
onError
public void onError(Cooldown annotation, CommandExecutionContext context, CommandInvocationPlan invocation, Throwable throwable) - Specified by:
onErrorin interfaceCommandAnnotationInterceptor<Cooldown>
-