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