Interface IPermissionHandler
-
- All Known Implementing Classes:
DefaultPermissionHandler
public interface IPermissionHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getNodeDescription(java.lang.String node)
java.util.Collection<java.lang.String>
getRegisteredNodes()
boolean
hasPermission(com.mojang.authlib.GameProfile profile, java.lang.String node, IContext context)
void
registerNode(java.lang.String node, DefaultPermissionLevel level, java.lang.String desc)
-
-
-
Method Detail
-
registerNode
void registerNode(java.lang.String node, DefaultPermissionLevel level, java.lang.String desc)
-
getRegisteredNodes
java.util.Collection<java.lang.String> getRegisteredNodes()
- Returns:
- Immutable collection of all registered nodes
-
hasPermission
boolean hasPermission(com.mojang.authlib.GameProfile profile, java.lang.String node, @Nullable IContext context)
-
getNodeDescription
java.lang.String getNodeDescription(java.lang.String node)
- Parameters:
node
- Permission node- Returns:
- Description of the node. "" in case this node doesn't have a decription
- See Also:
registerNode(String, DefaultPermissionLevel, String)
-
-