did a bit of refactoring

This commit is contained in:
batchprogrammer314
2021-08-24 19:54:46 -05:00
parent a2cb732bfa
commit cbb9781c6d
49 changed files with 646 additions and 323 deletions

View File

@@ -0,0 +1,4 @@
package net.nuggetmc.tplus.command.annotation;
public @interface Autofill {
}

View File

@@ -0,0 +1,22 @@
package net.nuggetmc.tplus.command.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Command {
String name() default "";
String[] aliases() default {};
String desc() default "Blank description.";
String usage() default "";
String autofill() default "";
boolean visible() default true;
}

View File

@@ -0,0 +1,12 @@
package net.nuggetmc.tplus.command.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Require {
String value();
}