Package com.sk89q.wepif
Class DinnerPermsResolver
java.lang.Object
com.sk89q.wepif.DinnerPermsResolver
- All Implemented Interfaces:
PermissionsProvider
,PermissionsResolver
- Direct Known Subclasses:
GroupManagerResolver
,PermissionsExResolver
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionsResolver
factory
(Server server, YAMLProcessor config) String[]
String[]
getGroups
(OfflinePlayer player) getPermissible
(OfflinePlayer offline) boolean
hasPermission
(String name, String permission) boolean
hasPermission
(String worldName, String name, String permission) boolean
hasPermission
(String worldName, OfflinePlayer player, String permission) boolean
hasPermission
(OfflinePlayer player, String permission) boolean
boolean
inGroup
(OfflinePlayer player, String group) int
internalHasPermission
(Permissible perms, String permission) Checks the permission from dinnerperms.void
load()
-
Field Details
-
GROUP_PREFIX
- See Also:
-
server
-
-
Constructor Details
-
DinnerPermsResolver
-
-
Method Details
-
factory
-
load
public void load()- Specified by:
load
in interfacePermissionsResolver
-
hasPermission
- Specified by:
hasPermission
in interfacePermissionsProvider
-
hasPermission
- Specified by:
hasPermission
in interfacePermissionsProvider
-
inGroup
- Specified by:
inGroup
in interfacePermissionsProvider
-
getGroups
- Specified by:
getGroups
in interfacePermissionsProvider
-
hasPermission
- Specified by:
hasPermission
in interfacePermissionsProvider
-
hasPermission
- Specified by:
hasPermission
in interfacePermissionsProvider
-
inGroup
- Specified by:
inGroup
in interfacePermissionsProvider
-
getGroups
- Specified by:
getGroups
in interfacePermissionsProvider
-
getPermissible
-
internalHasPermission
Checks the permission from dinnerperms.- Parameters:
perms
- Permissible to check forpermission
- The permission to check- Returns:
- -1 if the permission is explicitly denied, 1 if the permission is allowed, 0 if the permission is denied by a default.
-
getDetectionMessage
- Specified by:
getDetectionMessage
in interfacePermissionsResolver
-