Package wtf.choco.veinminer.platform
Interface PlatformPermission
- All Known Implementing Classes:
BukkitPlatformPermission
public interface PlatformPermission
Represents a server permission node.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The group to which this permission should be attributed to by default if not explicitly set. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(PlatformPermission permission, boolean value) Add the givenPlatformPermission
as a child of this permission node.getName()
Get the name (or "id") of this permission node.void
Recalculate all permissible objects that have this permission attached to them.
-
Method Details
-
getName
String getName()Get the name (or "id") of this permission node.- Returns:
- the name
-
addChild
Add the givenPlatformPermission
as a child of this permission node.- Parameters:
permission
- the child permission to addvalue
- whether or not the child permission will inherit the parent permission. If false, the child will inherit the inverse of its parent permission
-
recalculatePermissibles
void recalculatePermissibles()Recalculate all permissible objects that have this permission attached to them.
-