mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-18 18:05:05 +01:00
Execution power
This commit is contained in:
@@ -6,10 +6,18 @@ import java.lang.annotation.RetentionPolicy;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Command {
|
||||
String label() default "";
|
||||
|
||||
String usage() default "";
|
||||
|
||||
String[] aliases() default {""};
|
||||
|
||||
Execution execution() default Execution.ALL;
|
||||
|
||||
int gmLevel() default 1;
|
||||
|
||||
String usage() default "";
|
||||
enum Execution {
|
||||
ALL,
|
||||
CONSOLE,
|
||||
PLAYER
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user