Package com.plotsquared.core.permissions
Interface PermissionProfile
- All Known Implementing Classes:
ConsolePermissionProfile,NullPermissionProfile
public interface PermissionProfile
A permission profile that can be used to check for permissions
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanhasKeyedPermission(@NonNull String permission, @NonNull String key) Check if the owner of the profile has a given (global) keyed permission.booleanCheck if the owner of the profile has a given keyed permission.default booleanhasPermission(@NonNull String permission) Check if the owner of the profile has a given (global) permissionbooleanhasPermission(@Nullable String world, @NonNull String permission) Check if the owner of the profile has a given permission
-
Method Details
-
hasPermission
Check if the owner of the profile has a given (global) permission- Parameters:
permission- Permission- Returns:
trueif the owner has the given permission, elsefalse
-
hasPermission
Check if the owner of the profile has a given permission- Parameters:
world- World namepermission- Permission- Returns:
trueif the owner has the given permission, elsefalse
-
hasKeyedPermission
Check if the owner of the profile has a given (global) keyed permission. Checks bothpermission.keyandpermission.*- Parameters:
permission- Permissionkey- Permission "key"- Returns:
trueif the owner has the given permission, elsefalse- Since:
- 6.0.10
-
hasKeyedPermission
Check if the owner of the profile has a given keyed permission. Checks bothpermission.keyandpermission.*- Parameters:
world- World namepermission- Permissionkey- Permission "key"- Returns:
trueif the owner has the given permission, elsefalse- Since:
- 6.0.10
-