Package revxrsal.commands.command
Interface CommandPermission
- All Known Implementing Classes:
BukkitCommandPermission
,BungeeCommandPermission
,JDAPermission
,SpongeCommandPermission
,VelocityCommandPermission
public interface CommandPermission
Represents a permission that is required in order to execute a
command.
This implementation may vary depending on the target platform
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CommandPermission
ACommandPermission
that returns true for any sender. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(@NotNull CommandActor actor) Returns whether the sender has permission to use this command or not.
-
Field Details
-
ALWAYS_TRUE
ACommandPermission
that returns true for any sender.
-
-
Method Details
-
canExecute
Returns whether the sender has permission to use this command or not.- Parameters:
actor
- Actor to test against- Returns:
true
if they can use it, false if otherwise.
-