Grasscutter/src/main/java/emu/grasscutter/commands/Command.java

26 lines
487 B
Java
Raw Normal View History

2022-04-17 20:43:07 +08:00
package emu.grasscutter.commands;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Command {
2022-04-19 06:24:08 +08:00
String label() default "";
2022-04-19 10:09:51 +08:00
String usage() default "No usage specified";
String description() default "No description specified";
2022-04-19 06:24:08 +08:00
String[] aliases() default {};
2022-04-17 20:43:07 +08:00
2022-04-19 10:09:51 +08:00
Execution execution() default Execution.ALL;
2022-04-19 11:46:04 +08:00
String permission() default "";
2022-04-19 10:09:51 +08:00
enum Execution {
ALL,
CONSOLE,
PLAYER
}
2022-04-17 20:43:07 +08:00
}