Package wtf.choco.veinminer.platform
Class BukkitPlatformPermission
java.lang.Object
wtf.choco.veinminer.platform.BukkitPlatformPermission
- All Implemented Interfaces:
PlatformPermission
Bukkit implementation of
PlatformPermission
.-
Nested Class Summary
Nested classes/interfaces inherited from interface wtf.choco.veinminer.platform.PlatformPermission
PlatformPermission.Default
-
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
Description copied from interface:PlatformPermission
Get the name (or "id") of this permission node.- Specified by:
getName
in interfacePlatformPermission
- Returns:
- the name
-
addChild
Description copied from interface:PlatformPermission
Add the givenPlatformPermission
as a child of this permission node.- Specified by:
addChild
in interfacePlatformPermission
- 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
public void recalculatePermissibles()Description copied from interface:PlatformPermission
Recalculate all permissible objects that have this permission attached to them.- Specified by:
recalculatePermissibles
in interfacePlatformPermission
-