Package revxrsal.commands.process
Interface PermissionReader
public interface PermissionReader
Represents a convenient way to register custom
CommandPermission
implementations. This reader can have access to a command's annotations.-
Method Summary
Modifier and TypeMethodDescription@Nullable CommandPermission
getPermission
(@NotNull CommandAnnotationHolder command) Returns the specified permission for this command, ornull
if this reader does not identify any permission.
-
Method Details
-
getPermission
@Nullable @Nullable CommandPermission getPermission(@NotNull @NotNull CommandAnnotationHolder command) Returns the specified permission for this command, ornull
if this reader does not identify any permission.- Parameters:
command
- Command to generate for. This will always be aPermissionHolder
, and may be aCommandParameter
or anExecutableCommand
.- Returns:
- The permission, or null if not identified.
-