# AnotherLevelBattlepass Configuration File

permissions:
  premium: al.battlepass.premium  # Permission for premium battlepass access
  free: none  # Set to 'none' if no permission is required for free access

database:
  table: battlepass  # Name of the database table for storing battlepass data

date:
  start-date: 2024-01-01T00:00:00Z  # Battlepass start date (ISO 8601 format)
  end-date: 2024-12-31T23:59:59Z    # Battlepass end date (ISO 8601 format)

levels:
  startlevel: 1    # Starting level for new players
  maxlevel: 100    # Maximum achievable level
  exptable: default  # Name of the experience table to use (defined in exptable.yml)

gui:
  title: "<black>ʙᴀᴛᴛʟᴇᴘᴀss"  # Title of the battlepass GUI
  rows: 6  # Number of rows in the GUI (1 row = 9 slots)
  pages:
    previous-page:
      material: ARROW
      name: "<#FFB187>Previous page"
      customdata: 1
      lore:
        - "<#FFB187>Click to go to the previous page"
      slots:
        - 45
    next-page:
      material: ARROW
      name: "<#DAFF87>Next page"
      customdata: 1
      lore:
        - "<#DAFF87>Click to go to the next page"
      slots:
        - 53

# Display items configuration
# Conditions types:
# - none: No condition, always shown
# - level: Requires player to be at or above a certain level
# - permission: Requires player to have a specific permission
# - pages: Specifies on which pages the item should be displayed
display-items:
  items:
    background:
      conditions:
        - type: none
      true:
        material: BLACK_STAINED_GLASS_PANE
        name: " "
        customdata: 1
        slots:
          - 0
          - 1
          - 2
          - 3
          - 5
          - 6
          - 7
          - 8
          - 9
          - 17
          - 18
          - 26
          - 27
          - 35
          - 36
          - 44
          - 45
          - 46
          - 47
          - 48
          - 50
          - 51
          - 52
          - 53
    info:
      conditions:
        - type: none
      true:
        material: BOOK
        name: "<gradient:#27E3FB:#277AFB>Battlepass Information</gradient>"
        lore:
          - "<#A0A0A0>Your Level: <#E0E0E0>%current_level%"
          - "<#A0A0A0>Current EXP: <#E0E0E0>%current_exp%"
          - "<#A0A0A0>Required EXP: <#E0E0E0>%required_exp%"
          - "<#A0A0A0>Progress: <#E0E0E0>%progress_percentage%"
          - ""
          - "<#A0A0A0>Premium Status: <#E0E0E0>%premium_status%"
        slots:
          - 4
    free_label:
      conditions:
        - type: level
          value: 5  # Player must be level 5 or higher
      true:
        material: GOLD_INGOT
        name: "<#FFD700>Free Rewards"
        lore:
          - "<#FFF59D>Rewards available for all players"
          - "<#FFF59D>Your Status: <#E0E0E0>%premium_status%"
        slots:
          - 9
      false:
        material: BARRIER
        name: "<#FF0000>Free Rewards Locked"
        lore:
          - "<#FFF59D>Unlock at level 5"
          - "<#FFF59D>Your Level: <#E0E0E0>%current_level%"
        slots:
          - 9
    premium_label:
      conditions:
        - type: permission
          value: "al.battlepass.premium"  # Player must have this permission
      true:
        material: DIAMOND
        name: "<#1E90FF>Premium Rewards</gradient>"
        lore:
          - "<#87CEFA>Exclusive rewards for premium players"
          - "<#87CEFA>Your Status: <#E0E0E0>%premium_status%"
        slots:
          - 27
      false:
        material: IRON_BARS
        name: "<#808080>Premium Rewards Locked</gradient>"
        lore:
          - "<#87CEFA>Requires premium permission"
          - "<#87CEFA>Your Status: <#E0E0E0>%premium_status%"
        slots:
          - 27
    special_event:
      conditions:
        - type: pages
          value: [ 1, 2 ]  # This item will only appear on pages 1 and 2
        - type: permission
          value: "al.battlepass.event"  # Player must have this permission
        - type: level
          value: 10  # Player must be at least level 10
      true:
        material: NETHER_STAR
        name: "<gradient:#FF6B6B:#4ECDC4>Special Event!</gradient>"
        lore:
          - "<#FFD700>Limited time event active!"
          - "<#FFD700>Complete challenges for bonus rewards"
          - ""
          - "<#A0A0A0>Page: <#E0E0E0>%current_page%"
          - "<#A0A0A0>Your Level: <#E0E0E0>%current_level%"
        slots:
          - 49
      false:
        material: AIR
        name: ""
        slots:
          - 49

rewards_per_page: 7  # Number of rewards to display per page

# Reward configuration
# Each number represents a level
rewards:
  "0":
    premium:
      reward_id: 'premium_reward_0'
      slot: 28
    free:
      reward_id: 'free_reward_0'
      slot: 10
  "1":
    premium:
      reward_id: 'premium_reward_1'
      slot: 29
    free:
      reward_id: 'free_reward_1'
      slot: 11
  "2":
    premium:
      reward_id: 'premium_reward_2'
      slot: 30
    free:
      reward_id: 'free_reward_2'
      slot: 12
  "3":
    premium:
      reward_id: 'premium_reward_3'
      slot: 31
    free:
      reward_id: 'free_reward_3'
      slot: 13
  "4":
    premium:
      reward_id: 'premium_reward_4'
      slot: 32
    free:
      reward_id: 'free_reward_4'
      slot: 14
  "5":
    premium:
      reward_id: 'premium_reward_5'
      slot: 33
    free:
      reward_id: 'free_reward_5'
      slot: 15
  "6":
    premium:
      reward_id: 'premium_reward_6'
      slot: 34
    free:
      reward_id: 'free_reward_6'
      slot: 16