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.getNode()Gets the permission node string.org.bukkit.permissions.PermissionDefaultGets the default permission setting.default booleanhas(org.bukkit.permissions.Permissible player) Checks if a player has this permission.default voidregister()Registers the permission node with the Bukkit permission manager.
-
Method Details
-
getNode
String getNode()Gets the permission node string.- Returns:
- The permission node.
-
getDescription
String getDescription()Gets the description of the permission node.- Returns:
- The description.
-
getPermissionDefault
org.bukkit.permissions.PermissionDefault getPermissionDefault()Gets the default permission setting.- Returns:
- The default permission.
-
has
default boolean has(org.bukkit.permissions.Permissible player) Checks if a player has this permission.- Parameters:
player- The player to check.- Returns:
- true if the player has this permission, false otherwise.
-
register
default void register()Registers the permission node with the Bukkit permission manager.
-