Update and add more annotations

java-rewrite
Hammy 3 years ago
parent 118a762d00
commit 68b65fce4f

@ -13,5 +13,7 @@ public @interface Command {
String name(); String name();
String description(); String description();
boolean isVisible(); boolean isVisible();
SubCommandGroup[] subCommandGroups() default {};
SubCommand[] subCommands() default {};
Option[] options() default {}; Option[] options() default {};
} }

@ -0,0 +1,16 @@
package me.goudham.command.annotation;
import jakarta.inject.Qualifier;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Qualifier
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SubCommand {
String name();
String description();
Option[] options() default {};
}

@ -0,0 +1,16 @@
package me.goudham.command.annotation;
import jakarta.inject.Qualifier;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Qualifier
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SubCommandGroup {
String name();
String description();
SubCommand[] subCommands() default {};
}
Loading…
Cancel
Save