Interface IPermissionAdapter
- All Known Implementing Classes:
LuckPermsPermissionAdapter
,NullPermissionAdapter
public interface IPermissionAdapter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNotAuthedBlockedPerms
(UserIdentity identity) Adds the not-authed groups to the uservoid
addRequiredBypassPerms
(UserIdentity identity) Removes all groups from the user and adds the required groupsfindRequiredGroupPerms
(UserIdentity identity) Searches for 'gamersafer.required.<group>' in the users' permissions and extracts '<group>'Returns the name of the integrated pluginboolean
hasNotAuthedGroupPermission
(String permission) Checks whether the not-authed group has the given permission.boolean
hasRequiredBypassPermsSet
(UserIdentity identity) Returns whether the user has required groups set currently, i.e.void
removeNotAuthedBlockedPerms
(UserIdentity identity) Removes the not-authed groups from the uservoid
removeRequiredBypassPerms
(UserIdentity identity) Removes all required groups from the user and adds their original groupvoid
shutdown()
Waits for the background saving task to finish.
-
Method Details
-
getPluginName
String getPluginName()Returns the name of the integrated plugin -
hasNotAuthedGroupPermission
Checks whether the not-authed group has the given permission.- Parameters:
permission
- the permission to check- Returns:
true
if the group has the passed permission or if the group is not set in the config,false
otherwise
-
shutdown
void shutdown()Waits for the background saving task to finish.
-