mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-05-27 18:50:20 +08:00
28 lines
745 B
Java
28 lines
745 B
Java
package emu.grasscutter.command;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface Command {
|
|
String label() default "";
|
|
|
|
String[] aliases() default {};
|
|
|
|
String[] usage() default {""};
|
|
|
|
String permission() default "";
|
|
|
|
String permissionTargeted() default "";
|
|
|
|
public enum TargetRequirement {
|
|
NONE, // targetPlayer is not required
|
|
OFFLINE, // targetPlayer must be offline
|
|
PLAYER, // targetPlayer can be online or offline
|
|
ONLINE // targetPlayer must be online
|
|
}
|
|
TargetRequirement targetRequirement() default TargetRequirement.ONLINE;
|
|
|
|
boolean threading() default false;
|
|
}
|