@FunctionalInterface
public interface CommandPermission<A extends CommandActor>
This implementation may vary depending on the target platform
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CommandPermission.Factory<A extends CommandActor>
Represents a convenient way to register custom
CommandPermission
implementations. |
| Modifier and Type | Method and Description |
|---|---|
static <A extends CommandActor> |
alwaysTrue()
Returns a
CommandPermission that always returns true for
all actors. |
boolean |
isExecutableBy(A actor)
Returns whether the sender has permission to use this command
or not.
|
static <A extends CommandActor> CommandPermission<A> alwaysTrue()
CommandPermission that always returns true for
all actors.A - The actor typeboolean isExecutableBy(@NotNull
A actor)
actor - Actor to test againsttrue if they can use it, false if otherwise.