size: 36
menu_title: 'Flight Time'

items:

  'filler':
    material: GRAY_STAINED_GLASS_PANE
    display_name: "&f"
    damage: 1
    slots: [0-35]

  'back':
    material: FLOWER_BANNER_PATTERN
    slot: 31
    display_name: "&cGo Back"
    click_commands:
      - "[openguimenu] coinshop"

  '1':
    material: FEATHER
    slot: 10
    priority: 1
    amount: 1
    enchantments:
    - DURABILITY;1
    item_flags: HIDE_ENCHANTS
    display_name: "&#9EE7FF&l20 Minutes Flight Time"
    lore:
      - "&8Creditshop Item"
      - ""
      - "&6◈ &fCost: &6600 Credits"
      - ""
      - "&a&l➥ CLICK TO PURCHASE"
      - ""

    click_commands:
      - '[console] tempfly add %player_name% 20m'
      - '[console] credits take %player_name% 600'

      - '[message] &8&l[&a&l!&8&l] &#7AFE77You successfully bought &f20 Minutes Flight Time &#7AFE77!'
      - '[close]'

    click_requirement:
      requirements:
        check_balance:
          type: '>='
          input: '%coinsengine_balance_raw_credits%'
          output: '600'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough credits to purchase this item!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou need &f600 &#FF7C7Cbut you only have &f%coinsengine_balance_raw_credits%&#FF7C7C."
            - '[close]'

  '2':
    material: FEATHER
    slot: 12
    priority: 1
    amount: 2
    enchantments:
    - DURABILITY;1
    item_flags: HIDE_ENCHANTS
    display_name: "&#9EE7FF&l40 Minutes Flight Time"
    lore:
      - "&8Creditshop Item"
      - ""
      - "&6◈ &fCost: &61,000 Credits"
      - ""
      - "&a&l➥ CLICK TO PURCHASE"
      - ""

    click_commands:
      - '[console] tempfly add %player_name% 40m'
      - '[console] credits take %player_name% 1000'

      - '[message] &8&l[&a&l!&8&l] &#7AFE77You successfully bought &f40 Minutes Flight Time &#7AFE77!'
      - '[close]'

    click_requirement:
      requirements:
        check_balance:
          type: '>='
          input: '%coinsengine_balance_raw_credits%'
          output: '1000'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough credits to purchase this item!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou need &f1,000 &#FF7C7Cbut you only have &f%coinsengine_balance_raw_credits%&#FF7C7C."
            - '[close]'

  '3':
    material: FEATHER
    slot: 14
    priority: 1
    amount: 3
    enchantments:
    - DURABILITY;1
    item_flags: HIDE_ENCHANTS
    display_name: "&#9EE7FF&l1 Hour Flight Time"
    lore:
      - "&8Creditshop Item"
      - ""
      - "&6◈ &fCost: &61,400 Credits"
      - ""
      - "&a&l➥ CLICK TO PURCHASE"
      - ""

    click_commands:
      - '[console] tempfly add %player_name% 1h'
      - '[console] credits take %player_name% 1400'

      - '[message] &8&l[&a&l!&8&l] &#7AFE77You successfully bought &f1 Hour Flight Time &#7AFE77!'
      - '[close]'

    click_requirement:
      requirements:
        check_balance:
          type: '>='
          input: '%coinsengine_balance_raw_credits%'
          output: '1400'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough credits to purchase this item!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou need &f1,400 &#FF7C7Cbut you only have &f%coinsengine_balance_raw_credits%&#FF7C7C."
            - '[close]'

  '4':
    material: FEATHER
    slot: 16
    priority: 1
    amount: 4
    enchantments:
    - DURABILITY;1
    item_flags: HIDE_ENCHANTS
    display_name: "&#9EE7FF&l2 Hours Flight Time"
    lore:
      - "&8Creditshop Item"
      - ""
      - "&6◈ &fCost: &62,000 Credits"
      - ""
      - "&a&l➥ CLICK TO PURCHASE"
      - ""

    click_commands:
      - '[console] tempfly add %player_name% 2h'
      - '[console] credits take %player_name% 2000'

      - '[message] &8&l[&a&l!&8&l] &#7AFE77You successfully bought &f2 Hours Flight Time &#7AFE77!'
      - '[close]'

    click_requirement:
      requirements:
        check_balance:
          type: '>='
          input: '%coinsengine_balance_raw_credits%'
          output: '2000'
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou don't have enough credits to purchase this item!"
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CYou need &f2,000 &#FF7C7Cbut you only have &f%coinsengine_balance_raw_credits%&#FF7C7C."
            - '[close]'

