Interface PermissionNode

All Known Implementing Classes:
Permission

public interface PermissionNode
Interface representing a permission node.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the description of the permission node.
    Gets the permission node string.
    org.bukkit.permissions.PermissionDefault
    Gets the default permission setting.
    default boolean
    has(org.bukkit.permissions.Permissible player)
    Checks if a player has this permission.
    default void
    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.