Interface PermissionNode

All Known Implementing Classes:
Permission

public interface PermissionNode
Interface representing a 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

      default boolean has(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.
    • toBukkitPermission

      default Permission 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.