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
(org.bukkit.Server server, com.sk89q.util.yaml.YAMLProcessor config) String[]
String[]
getGroups
(org.bukkit.OfflinePlayer player) org.bukkit.permissions.Permissible
getPermissible
(org.bukkit.OfflinePlayer offline) boolean
hasPermission
(String name, String permission) boolean
hasPermission
(String worldName, String name, String permission) boolean
hasPermission
(String worldName, org.bukkit.OfflinePlayer player, String permission) boolean
hasPermission
(org.bukkit.OfflinePlayer player, String permission) boolean
boolean
int
internalHasPermission
(org.bukkit.permissions.Permissible perms, String permission) Checks the permission from dinnerperms.void
load()
-
Field Details
-
GROUP_PREFIX
- See Also:
-
server
protected final org.bukkit.Server server
-
-
Constructor Details
-
DinnerPermsResolver
public DinnerPermsResolver(org.bukkit.Server server)
-
-
Method Details
-
factory
public static PermissionsResolver factory(org.bukkit.Server server, com.sk89q.util.yaml.YAMLProcessor config) -
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
public org.bukkit.permissions.Permissible getPermissible(org.bukkit.OfflinePlayer offline) -
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
-