Interface PermissionNode
- All Known Implementing Classes:
Permission
public interface PermissionNode
Interface representing a permission node.
-
Method Summary
Modifier and TypeMethodDescriptionGets the description of the permission node.Gets the default permission setting.getValue()Gets the permission node string.default booleanhas(Permissible player) Checks if a player has this permission.default voidregister()Registers the permission node with the Bukkit permission manager.default PermissionCreates a Bukkit permission from this permission node.
-
Method Details
-
getValue
String getValue()Gets the permission node string.- Returns:
- The permission node.
-
getDescription
String getDescription()Gets the description of the permission node.- Returns:
- The description.
-
getPermissionDefault
PermissionDefault getPermissionDefault()Gets the default permission setting.- Returns:
- The default permission.
-
has
Checks if a player has this permission.- Parameters:
player- The player to check.- Returns:
- true if the player has this permission, false otherwise.
-
toBukkitPermission
Creates a Bukkit permission from this permission node.- Returns:
- The Bukkit permission.
-
register
default void register()Registers the permission node with the Bukkit permission manager.
-