# 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

###################################
#             Items: Options
# Item: <ID:MD> - You can choose the item with its id and meta data.
# 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  #
###################################################################
voucher-codes: # Where you make your vouchers.
  # The name of the code.
  Starter-Money:
    # The code to use in /crazyvouchers redeem <code>
    code: 'startermoney'
    # Run normal commands when the code is redeemed.
    commands:
      - 'eco give {player} 10000'
    # 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"
    # All options when they right-click it.
    options:
      # If the option is case-sensitive or not.
      case-sensitive: false
      # If the code is enabled.
      enabled: true
      # The message to send the player.
      message: '{prefix}<gray>You have been given $10,000.'
      # The whitelist world settings.
      whitelist-worlds:
        # Should we check the worlds players have to be in?
        toggle: false
        # The message to send.
        message: '{prefix}<red>You can not use that voucher here as you are not in a whitelisted
          world for this voucher.'
        # The list of worlds they have to be in.
        worlds:
          - 'world'
        # The commands to run if they don't have the permission.
        commands:
          - 'msg {player} send command for whatever reason'
      # 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 need {permission} so you can use this.'
          # If they don't have this permission, they can't use the voucher.
          permissions:
            - 'voucher.startermoney'
          # The commands to run if they don't have the permission.
          commands:
            - 'msg {player} send command for whatever reason'
        # 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}<red>You have a blacklisted permission and can''t use this voucher.'
          # If they have this permission, they can't use the voucher.
          permissions:
            - 'voucher.blacklist.startermoney'
          # The commands to run if they do have the permission.
          commands:
            - 'msg {player} send command for whatever reason'
      # Limiter related settings.
      limiter:
        # If this should be enabled.
        toggle: false
        # The max number of uses for the voucher.
        amount: 10
      # 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: 'Green, Lime'