open_command: 'blackmarket'
register_command: true
size: 35
menu_title: 'Black Market'

items:

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

  # --- Information ---
  'main':
    material: LIGHT_BLUE_CANDLE
    slot: 4
    display_name: '&3&lBlack Market'
    lore:
      - '&7Black Market Information'
      - ''
      - '&fYou have &3%ultimatemobcoins_balance_formatted_compact% &fSouls'
      - ''
      - '&3Souls are collected from fallen mobs'
      - '&fand traded here for forbidden goods.'
      - ''
      - '&3How to obtain Souls?'
      - '&f- Slay mobs across the world'
      - '&f- Build mob grinders'
      - '&f- Hunt dangerous creatures'
      - ''
      - '&7Every kill brings profit...'

  'SPAWNERS':
    material: SPAWNER
    damage: 1
    slot: 20
    display_name: "&#7b001b&lIllegal Spawners"
    lore:
      - "&8BlackMarket Category"
      - ''
      - '&fSpawn monsters at will with these forbidden spawners.'
      - '&fUse them wisely... or the world may collapse.'
      - ''
      - '&3How to use?'
      - '&f- Place the spawner in a safe area'
      - '&f- Watch mobs appear instantly'
      - '&f- Collect resources without limits'
      - ''

    click_commands:
      - '[openmenu] blackmarket-spawners-passive'
      
  'ENCHANTS':
    material: ENCHANTED_BOOK
    damage: 0
    slot: 22
    display_name: "&#6a00ff&lEldritch Enchants"
    lore:
      - "&8BlackMarket Category"
      - ''
      - '&fEmpower your weapons and armor'
      - '&fwith forbidden, arcane enchantments.'
      - '&fGain powers beyond the ordinary.'
      - ''
      - '&3How to use?'
      - '&f- Apply the enchant to compatible gear'
      - '&f- Stack wisely for maximum effect'
      - '&f- Some enchantments are dangerous to wield'
      - ''

    click_commands:
      - '[openmenu] blackmarket-enchants'

  'CONTRABAND':
    material: CLOCK
    damage: 0
    slot: 24
    display_name: "&#ff7a00&lContraband"
    lore:
      - "&8BlackMarket Category"
      - ''
      - '&fRare and forbidden items for those who dare.'
      - '&fRotating items available every evening.'
      - ''
      - '&3Availability'
      - '&f- Opens daily at &a18:00'
      - '&f- Closes daily at &c00:00'
      - ''

    click_requirement:
      requirements:
        open_time:
          type: javascript
          expression: "%localtime_time_HH% >= 18 && %localtime_time_HH% <= 23"
          deny_commands:
            - "[message] &8&l[&c&l!&8&l] &#FF7C7CContraband opens daily between &f18:00 &#FF7C7Cand &f00:00&#FF7C7C."
            - "[close]"

    click_commands:
      - '[console] lp user %player_name% permission settemp ultimatemobcoins.command.mobcoins.shop true 2s true'
      - '[console] lp user %player_name% permission settemp commandblocker.bypass true 2s true'
      - '[console] souls shop blackmarket_contraband_rotating %player_name%'
      - '[console] lp user %player_name% permission unsettemp ultimatemobcoins.command.mobcoins.shop true'
      - '[console] lp user %player_name% permission unsettemp commandblocker.bypass true'