Command.java 487 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
2
3
4
5
6
7
package emu.grasscutter.commands;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME) 
public @interface Command {
KingRainbow44's avatar
KingRainbow44 committed
8
	String label() default "";
KingRainbow44's avatar
KingRainbow44 committed
9

10
11
12
	String usage() default "No usage specified";

	String description() default "No description specified";
KingRainbow44's avatar
KingRainbow44 committed
13
	
14
	String[] aliases() default {};
Melledy's avatar
Melledy committed
15
	
KingRainbow44's avatar
KingRainbow44 committed
16
17
	Execution execution() default Execution.ALL;
	
18
	String permission() default "";
19

KingRainbow44's avatar
KingRainbow44 committed
20
21
22
23
24
	enum Execution {
		ALL,
		CONSOLE,
		PLAYER
	}
Melledy's avatar
Melledy committed
25
}