# license key you can get the license key on opening a ticket
# discord.gg/S8GjzxWjmP this work only if you have a premium version
license-key: ""

# LOCAL DATABASE OPTIONS
# if you want use an external database check mysql config
local-database-options: # these options will be avaiable while external-database is false
  use-sqlite: true # if it set to false it will use H2DATABASE

# this is the active table for the database
# this will change automatically while you
# switch from one battlepass to another one
ACTIVE-TABLE: "battlepass"

# EXTERNAL DATABASE
mysql:
  # Set this to true if you want active the external database
  enabled: false
  # set it to true if you want active the development database
  # this can be usefull in dev server context.
  development: false
  dev-database:
    HOST: "localhost"
    PORT: 3306
    DATABASE: "dbname"
    USER: "root"
    PASSWORD: "password"
  production-database:
    HOST: "localhost"
    PORT: 3306
    DATABASE: "dbname"
    USER: "root"
    PASSWORD: "password"

# Multi server support
# Setting it to true if you wanna run battlepass
# in multiple servers
multi-server: false


# if you don't know what is this don't touch it
developer-mode: false
debug: false

custom_sounds:
  enabled: true
  # This sound is used when player click a premium slot
  # without premium permission
  no-premium-permission-sound:
    enabled: true
    name: BLOCK_ANVIL_LAND
    volume: 1.0
    pitch: 1.0
  premium-reward-claimed:
    enabled: true
    name: ENTITY_PLAYER_LEVELUP
    volume: 1.0
    pitch: 1.0
  reward-already-claimed:
    enabled: true
    name: ENTITY_VILLAGER_NO
    volume: 1.0
    pitch: 1.0
  free-reward-claimed:
    enabled: true
    name: BLOCK_NOTE_BLOCK_PLING
    volume: 1.0
    pitch: 1.0
  level-not-reached:
    enabled: true
    name: ENTITY_ENDERMAN_TELEPORT
    volume: 1.0
    pitch: 1.0

# Aliases of /battlepass and /battlepassadmin command
# This work only with Paper version
aliases:
  battlepassadmin:
    - bpa
    - battlepassadmin
    - adminbattlepass
    - bpadmin
  battlepass:
    - pp
    - ppass
    - pass
    - bp

# Active battlepass
active-battlepass: battlepass.yml

# Here you can define default values
# on generating a new battlepass
default-battlepass:
  start-date: 2020-01-01
  end-date: 2020-01-31
  maxlevel: 100
  exptable: default
  battlepass-permission: al.battlepass.premium
  free-battlepass-permission: none # set to none if you don't want any free permsission
  gui-title: "<#B5FD24>Battlepass %battlepass%"
  gui-size: 54
  start-free-items: 0
  start-premium-items: 45
  database-table: battlepass
  exclude-rewards:
    free:
    #  - 0
    #  - 1
    premium:
    #  - 2
    #  - 3
  display-items:
    items:
      item1:
        material: "PAPER"
        name: "<gray>Custom item"
        customdata: 100
        enchanted: false
        lore:
          - "<gray>This is a customItem"
        commands:
          - "say nice buy battlepass now %player% "
        slots:
          - 0
          - 1
          - 2
          - 3
  previous-page:
    material: "ARROW"
    name: "<gray>Previous page"
    customdata: 100
    lore:
      - "<gray>Click to go to the previous page"
    slot:
      - 9
      - 10
  next-page:
    material: "ARROW"
    name: "<gray>Next page"
    customdata: 100
    lore:
      - "<gray>Click to go to the next page"
    slot:
      - 16
      - 17
  rewards:
    0:
      premium:
        commands:
          - "give %player% paper 1"
        displayitem:
          material: "PAPER"
          customdata: 100
          name: "<gray>Level 0 (Premium)"
          enchanted: true
          lore:
            - "<yellow>This is a premium reward"
      free:
        commands:
          - "give %player% paper 1"
        displayitem:
          material: "PAPER"
          customdata: 100
          enchanted: false
          name: "<gray>Level 0 (Free)"
          lore:
            - "<gray>This is a free reward"
  rewards-slots:
    free:
      - 9
      - 10
      - 11
      - 12
      - 13
      - 14
      - 15
      - 16
      - 17
    premium:
      - 27
      - 28
      - 29
      - 30
      - 31
      - 32
      - 33
      - 34
      - 35