Class LuckPermsPermissionAdapter
java.lang.Object
com.gamersafer.minecraft.auth.common.permissions.impl.LuckPermsPermissionAdapter
- All Implemented Interfaces:
IPermissionAdapter
-
Constructor Summary
ConstructorsConstructorDescriptionLuckPermsPermissionAdapter(File cacheFile, SharedConfiguration config, LanguageConfiguration lang, ILogger logger) -
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.
-
Constructor Details
-
Method Details
-
getPluginName
Description copied from interface:IPermissionAdapterReturns the name of the integrated plugin- Specified by:
getPluginNamein interfaceIPermissionAdapter
-
hasNotAuthedGroupPermission
Description copied from interface:IPermissionAdapterChecks whether the not-authed group has the given permission.- Specified by:
hasNotAuthedGroupPermissionin interfaceIPermissionAdapter- 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
public void shutdown()Description copied from interface:IPermissionAdapterWaits for the background saving task to finish.- Specified by:
shutdownin interfaceIPermissionAdapter
-