Command.java 413 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

	String usage() default "";
KingRainbow44's avatar
KingRainbow44 committed
11
	
12
	String[] aliases() default {""};
Melledy's avatar
Melledy committed
13
	
KingRainbow44's avatar
KingRainbow44 committed
14
15
	Execution execution() default Execution.ALL;
	
16
	String permission() default "";
Melledy's avatar
Melledy committed
17
	
KingRainbow44's avatar
KingRainbow44 committed
18
19
20
21
22
	enum Execution {
		ALL,
		CONSOLE,
		PLAYER
	}
Melledy's avatar
Melledy committed
23
}