# FAQ
# Q) How can I deny the player's permissions?
# A) Use your permissions plugin like LuckPerms, You can run /lp user {player} permission set your_permission

# Q) Do I need everything in this config?
# A) No, You can view PlayerHead.yml for an example whereas much as possible can be removed.

###################################
#             Items: Options
# Item: <ID:MD> - You can choose the item with its id and metadata.
# Amount: <Number> - Choose how many of the item you get.
# Name: <Name> - The display name that goes on the item.
# Lore: <Line 1>,<Line 2>,<Line 3>,<Line 4> - The lore that will go under the enchantments. Split lines with a ','
# <Enchantment>:<Level> - Choose the enchantment you want to add to the item. You can use the in-game names of the enchantment if you want. Replace the spaces in the name with a "_".
###################################################################
#                         Firework Colors:                        #
#      Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon,     #
#  Navy, Olive, Orange, Purple, Red, Silver, Teal, White, Yellow  #
###################################################################
vouchers: # Where you make your vouchers.
  # The name of the voucher.
  money:
    # The material.
    item: 'diamond_helmet'
    # The name of the item.
    name: '<dark_gray>><gray>><red>Trim Example<gray><<dark_gray><'
    # The lore of the item.
    lore:
      - '<gray>Use this voucher to get fancy trims.'
      - '<gray>(<gold>!<gray>) <gray>Right click to redeem.'
    # If the item should glow or not.
    glowing: true
    # An example of how to use custom model data
    custom-model-data: -1
    # The commands to send.
    commands:
      - 'msg {player} wow you claimed a voucher.'
    # The items to give when claiming the voucher.
    items:
      - 'Item:diamond_helmet, Damage:50, Trim:sentry!quartz, Amount:1, protection:4, respiration:1, aqua_affinity:3, unbreaking:3, thorns:3'
      - 'Item:diamond_chestplate, Damage:50, Trim:dune!redstone, Amount:1, protection:4, unbreaking:3, thorns:3'
    # https://docs.crazycrew.us/docs/plugins/crazyvouchers/guides/weight-system
    # This section has 2 systems, Weight Based, and Random
    # They run independent of each other, Any commands without a Weight option
    # will be run separately as how random-commands used to function.
    random-commands:
      "1":
        # The chance for these to run
        weight: 45.0
        # The commands to run
        commands:
          - "eco give {player} 100"
      "2":
        # The chance for these to run
        weight: 25.0
        # The commands to run
        commands:
          - "eco give {player} 1000"
      "3":
        # The chance for these to run
        weight: 15.0
        # The commands to run
        commands:
          - "eco give {player} 10000"
      "4":
        # The chance for these to run
        weight: 10.0
        # The commands to run
        commands:
          - "eco give {player} 100000"
      "5":
        # The chance for these to run
        weight: 5.0
        # The commands to run
        commands:
          - "eco give {player} 1000000"
      # No chance is provided, thus we will pick random commands.
      "6":
       # The commands to run
       commands:
         - "give {player} diamond 5"
    # The durability or damage to the item given in the preview gui.
    display-damage: 50
    # The trim applied to the item in the preview gui.
    display-trim:
      # The trim material
      material: 'quartz'
      # The trim pattern
      pattern: 'sentry'
    # Any generic component for the Item.
    components:
      # Hides the entire tooltip.
      hide-tooltip: false
    # All options when they right-click it.
    options:
      # The message sent when they right-click it.
      message: '<gray>Congratulations, you have yourself fancy trims'
      # Settings related to world whitelist.
      whitelist-worlds:
        # Should we check the worlds players have to be in?
        toggle: false
        # The message to send.
        message: '{prefix}You are not in any of the whitelisted worlds.'
        # The list of worlds they have to be in.
        worlds:
          - 'world'
          - 'world_nether'
      # The permission settings.
      permission:
        # The whitelist permission settings.
        whitelist-permission:
          # If we should check players for this.
          toggle: false
          # If they don't have the permission, send this message.
          message: '{prefix}You do not have the permission <red>{permission} <gray>to use this voucher.'
          # If they don't have this permission, they can't use the voucher.
          permissions:
            - 'your-permission'
        # The blacklist permission settings.
        blacklist-permission:
          # If we should check players for this.
          toggle: false
          # The message to send to a player if they can't use the voucher.
          message: '{prefix}You already have the permission <red>{permission} <gray>so you can''t use this voucher.'
          # If they have this permission, they can't use the voucher.
          permissions:
            - 'your-permission'
      # Limiter related settings.
      limiter:
        # If this should be enabled.
        toggle: false
        # The max amount of uses for the voucher.
        amount: 10
      # If the player has to confirm claiming the voucher.
      two-step-authentication: false
      # The sound settings.
      sound:
        # If the sounds should be enabled.
        toggle: true
        # The volume pitch
        volume: 1.0
        # The sound pitch
        pitch: 1.0
        # The sound or sounds to use.
        # https://minecraft.wiki/w/Sounds.json
        sounds:
          - 'block.cherry_wood_button.click_on'
      # The firework settings.
      firework:
        # If the fireworks should be enabled.
        toggle: true
        # The colors of the firework.
        colors: 'Black, Gray, Aqua'
      # If the voucher is edible
      is-edible: false
  # The name of the voucher.
  RankUp:
    # The material.
    item: 'paper'
    # The name of the item.
    name: '<blue>Arg Example <aqua>{arg}'
    # The lore of the item.
    lore:
      - '<gray>Use this voucher to rank up to <red>{arg}'
      - '<dark_gray>(<yellow>!<dark_gray>) <light_purple>Right click to redeem.'
    # If the item should glow or not.
    glowing: true
    # The commands to send.
    commands:
      - 'lp user {player} parent group set {arg}'
    # Any generic component for the Item.
    components:
      # Hides the entire tooltip.
      hide-tooltip: false
    # All options when they right-click it.
    options:
      # The message sent when they right-click it.
      message: '<gray>Congratulations, you have just ranked up to <gold>{arg}<gray>.'
      # The sound settings.
      sound:
        # If the sounds should be enabled.
        toggle: true
        # The volume pitch
        volume: 1.0
        # The sound pitch
        pitch: 1.0
        # The sound or sounds to use.
        # https://minecraft.wiki/w/Sounds.json
        sounds:
          - 'BLOCK_AMETHYST_CLUSTER_STEP'
  # The name of the voucher.
  PlayerHead:
    # The material.
    item: 'player_head'
    # The name of the item.
    name: '<red>A player head example'
    # The lore of the item.
    lore:
      - '<gray>Use this voucher to get fancy trims.'
      - '<gray>(<gold>!<gray>) <gray>Right click to redeem.'
    # The name of the player.
    player: 'Rukkhadevata'
    #player: 'https://textures.minecraft.net/texture/1ee3126ff2c343da525eef2b93272b9fed36273d0ea08c2616b80009948ad57e'
    # If the item should glow or not.
    glowing: true
    # Any generic component for the Item.
    components:
      # Hides the entire tooltip.
      hide-tooltip: false
    # All options when they right-click it.
    options:
      # The message sent when they right-click it.
      message: '<gray>Congratulations, you have yourself a fancy head.'
    # The items to give when claiming the voucher.
    items:
      - 'Item:player_head, Player:https://textures.minecraft.net/texture/1ee3126ff2c343da525eef2b93272b9fed36273d0ea08c2616b80009948ad57e, Name:<red>A fancy head, Lore:<yellow>A fancy lore,<gray>with lines, Amount: 3, Glowing: true'
      - 'Item:player_head, Player:Rukkhadevata, Name:<red>A fancy head, Lore:<yellow>A fancy lore,<gray>with lines, Amount: 3, Glowing: true'