name: CodeRedeem
main: net.nordicraft.cr.CodeRedeem
author: dadus33
version: 1.0
commands:
  code:
    description: The base CodeRedeem command.
    aliases: [codes, coupons, coupon]
  redeem:
    description: Used for redeeming an existing valid coupon.
    aliases: [validate, checkcode]
permissions:
  cr.code.add:
    description: Allows the adding of codes.
    default: op
  cr.code.list:
    descriptions: Allows the listing of all available codes.
    default: op
  cr.code.*:
    description: This node should be given to admins only.
    children:
      cr.code.list: true
      cr.code.add: true
    default: op
  cr.redeem:
    description: This allows users to redeem a code.
    default: true