Package studio.mevera.imperat.resolvers
Interface PermissionChecker<S extends Source>
Represents a functional way of checking for the permissions
of the command source/sender.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanhasPermission(S source, @NotNull CommandParameter<S> parameter) booleanhasPermission(S source, @Nullable String permission) hasUsagePermission(S source, @Nullable CommandUsage<S> usage)
-
Method Details
-
hasPermission
- Parameters:
source- the source of the command (console or other)permission- the permission- Returns:
- whether this command source/sender has a specific permission
-
hasPermission
-
hasUsagePermission
-