diff --git a/core/src/main/java/co/aikar/commands/RegisteredCommand.java b/core/src/main/java/co/aikar/commands/RegisteredCommand.java index 655f93de..33de4923 100644 --- a/core/src/main/java/co/aikar/commands/RegisteredCommand.java +++ b/core/src/main/java/co/aikar/commands/RegisteredCommand.java @@ -34,6 +34,7 @@ import co.aikar.commands.annotation.Syntax; import co.aikar.commands.contexts.ContextResolver; import org.jetbrains.annotations.Nullable; +import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Parameter; @@ -331,4 +332,8 @@ public class RegisteredCommand cmd) { this.registeredSubcommands.addAll(cmd); } + + public T getAnnotation(Class annotation) { + return method.getAnnotation(annotation); + } }