Package wtf.choco.veinminer.platform
Interface PlatformPermission
- All Known Implementing Classes:
BukkitPlatformPermission
public interface PlatformPermission
Represents a server permission node.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe group to which this permission should be attributed to by default if not explicitly set. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(PlatformPermission permission, boolean value) Add the givenPlatformPermissionas a child of this permission node.getName()Get the name (or "id") of this permission node.voidRecalculate 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 givenPlatformPermissionas 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.
-