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 boolean
hasKeyedPermission
(@NonNull String permission, @NonNull String key) Check if the owner of the profile has a given (global) keyed permission.boolean
Check if the owner of the profile has a given keyed permission.default boolean
hasPermission
(@NonNull String permission) Check if the owner of the profile has a given (global) permissionboolean
hasPermission
(@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:
true
if 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:
true
if the owner has the given permission, elsefalse
-
hasKeyedPermission
Check if the owner of the profile has a given (global) keyed permission. Checks bothpermission.key
andpermission.*
- Parameters:
permission
- Permissionkey
- Permission "key"- Returns:
true
if 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.key
andpermission.*
- Parameters:
world
- World namepermission
- Permissionkey
- Permission "key"- Returns:
true
if the owner has the given permission, elsefalse
- Since:
- 6.0.10
-