Command.java 745 Bytes
Newer Older
Jaida Wu's avatar
Jaida Wu committed
1
2
3
4
5
6
7
8
9
10
11
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 {};

12
13
    String[] usage() default {""};

Jaida Wu's avatar
Jaida Wu committed
14
    String permission() default "";
15

AnimeGitB's avatar
AnimeGitB committed
16
    String permissionTargeted() default "";
BaiSugar's avatar
BaiSugar committed
17

18
19
20
21
22
23
24
25
    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;

BaiSugar's avatar
BaiSugar committed
26
    boolean threading() default false;
Jaida Wu's avatar
Jaida Wu committed
27
}