Interface PermissionNode

    • Method Detail

      • getPermission

        @NonNull String getPermission()
        Gets the permission string this node encapsulates.

        The exact value of this string may vary for nodes which aren't regular permission settings.

        Returns:
        the actual permission node
      • isWildcard

        boolean isWildcard()
        Gets if this node is a wildcard permission.
        Returns:
        true if this node is a wildcard permission
      • getWildcardLevel

        @NonNull OptionalInt getWildcardLevel()
        Gets the level of this wildcard.

        The node luckperms.* has a wildcard level of 1.

        The node luckperms.user.permission.* has a wildcard level of 3.

        Nodes with a higher wildcard level are more specific and have priority over less specific nodes (nodes with a lower wildcard level).

        Returns:
        the wildcard level