Interface IPermissionAdapter
- All Known Implementing Classes:
LuckPermsPermissionAdapter,NullPermissionAdapter
public interface IPermissionAdapter
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotAuthedBlockedPerms(UserIdentity identity) Adds the not-authed groups to the uservoidaddRequiredBypassPerms(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 pluginbooleanhasNotAuthedGroupPermission(String permission) Checks whether the not-authed group has the given permission.booleanhasRequiredBypassPermsSet(UserIdentity identity) Returns whether the user has required groups set currently, i.e.voidremoveNotAuthedBlockedPerms(UserIdentity identity) Removes the not-authed groups from the uservoidremoveRequiredBypassPerms(UserIdentity identity) Removes all required groups from the user and adds their original groupvoidshutdown()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:
trueif the group has the passed permission or if the group is not set in the config,falseotherwise
-
shutdown
void shutdown()Waits for the background saving task to finish.
-