# Configuration


#

config.yml

# Language

language: 'en'

Available options: en (English), fr (French). Custom language files can be placed in the languages/ folder.


#

# Database

database:
  type: 'sqlite'                # 'sqlite' or 'mysql'/'mariadb'
  host: 'localhost'             # MySQL only
  port: 3306                    # MySQL only
  database: 'premiumadvancements' # MySQL only
  username: 'root'              # MySQL only
  password: ''                  # MySQL only

#

# Webhook (Global Toggle)

webhook:
  enabled: false                # Master switch for all Discord webhooks
  url: ""                       # Discord webhook URL

#

# Progression Display

progression:
  show-actionbar: true          # Show progress in action bar

When false, all action bar messages are suppressed globally and the action bar toggle in the creation/edit GUI is disabled.


#

# Web Editor

editor:
  enabled: true                 # Enable/disable the web editor
  api-url: "https://api.skyxnetwork.net"
  editor-url: "https://skyxnetwork.net/editor"
  debug: false                  # Enable verbose editor logs

#

# Metrics

metrics:
  enabled: true                 # bStats metrics (ID: 28395)

#

Webhook Configuration (webhook.yml)

Controls the Discord embed appearance when advancements are completed. Each advancement can enable webhooks individually via webhook-enabled: true.

# Allowed Placeholders

Placeholder Description
%player% Player name
%advancement% Advancement title
%description% Advancement description
%rewards% Formatted rewards list

# Embed Structure

embed:
  title: "&6&l%player% completed **%advancement%**!"
  description: "> %description%"
  color: "#FFAA00"                # Hex color
  timestamp: true                 # Append UTC timestamp

  author:
    enabled: true
    name: "%player%"
    icon_url: ""                  # Empty = auto via mc-heads.net
    url: ""

  thumbnail:
    enabled: true
    url: ""                       # Empty = auto player avatar

  image:
    enabled: false
    url: ""

  footer:
    enabled: true
    text: "PremiumAdvancements"
    icon_url: ""

  fields:
    rewards:
      enabled: true
      name: "Rewards"
      value: "auto"               # "auto" builds reward list automatically
      inline: false
      empty_text: "*No rewards*"