Interface PermissionChecker<S extends CommandSource>
Represents a functional way of checking for the permissions
of the command source/sender.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Pair<PermissionHolder,Boolean> checkPermission(S source, @NotNull PermissionHolder holder) default booleanhasPermission(S source, @NotNull PermissionHolder holder) booleanhasPermission(S source, @Nullable String permission)
-
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
-
checkPermission
default Pair<PermissionHolder,Boolean> checkPermission(@NotNull S source, @NotNull @NotNull PermissionHolder holder)
-