@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Permission
| Modifier and Type | Fields and Description |
|---|---|
static char |
PREDICATE_PREFIX
The prefix that indicates a permission predicate.
|
public static final char PREDICATE_PREFIX
@NotNull public abstract @NotNull java.lang.String value
If the permission is not set, the command will be executed without any permission check.
If you prefix the permission with "@", it will be treated as a permission predicate,
and checked accordingly against the registered permission predicates. If the predicate is not registered,
the command will be executed without any permission check.
Special values:
"op" - Requires the sender to be an operator"console" - Requires the sender to be the console@NotNull public abstract @NotNull java.lang.String message
If the message is not set, the default message will be displayed, set in the Blade builder.