Package com.earth2me.essentials.perm
Class PermissionsHandler
java.lang.Object
com.earth2me.essentials.perm.PermissionsHandler
- All Implemented Interfaces:
IPermissionsHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addToGroup
(OfflinePlayer base, String group) boolean
void
getGroup
(OfflinePlayer base) getGroups
(OfflinePlayer base) getName()
boolean
hasPermission
(Player base, String node) boolean
boolean
isPermissionSet
(Player base, String node) isPermissionSetExact
(Player base, String node) void
registerContext
(String context, Function<User, Iterable<String>> calculator, Supplier<Iterable<String>> suggestions) boolean
removeFromGroup
(OfflinePlayer base, String group) void
setUseSuperperms
(boolean useSuperperms) boolean
tryProvider
(Essentials ess) void
-
Constructor Details
-
PermissionsHandler
-
-
Method Details
-
getGroup
- Specified by:
getGroup
in interfaceIPermissionsHandler
-
getGroups
- Specified by:
getGroups
in interfaceIPermissionsHandler
-
getGroups
- Specified by:
getGroups
in interfaceIPermissionsHandler
-
addToGroup
- Specified by:
addToGroup
in interfaceIPermissionsHandler
-
removeFromGroup
- Specified by:
removeFromGroup
in interfaceIPermissionsHandler
-
canBuild
- Specified by:
canBuild
in interfaceIPermissionsHandler
-
inGroup
- Specified by:
inGroup
in interfaceIPermissionsHandler
-
hasPermission
- Specified by:
hasPermission
in interfaceIPermissionsHandler
-
isPermissionSet
- Specified by:
isPermissionSet
in interfaceIPermissionsHandler
-
isPermissionSetExact
- Specified by:
isPermissionSetExact
in interfaceIPermissionsHandler
-
getPrefix
- Specified by:
getPrefix
in interfaceIPermissionsHandler
-
getSuffix
- Specified by:
getSuffix
in interfaceIPermissionsHandler
-
registerContext
public void registerContext(String context, Function<User, Iterable<String>> calculator, Supplier<Iterable<String>> suggestions) - Specified by:
registerContext
in interfaceIPermissionsHandler
-
unregisterContexts
public void unregisterContexts()- Specified by:
unregisterContexts
in interfaceIPermissionsHandler
-
getBackendName
- Specified by:
getBackendName
in interfaceIPermissionsHandler
-
tryProvider
- Specified by:
tryProvider
in interfaceIPermissionsHandler
-
checkPermissions
public void checkPermissions() -
setUseSuperperms
public void setUseSuperperms(boolean useSuperperms) -
getName
-