Configuration
Every option in plugins/ALBCore/config.yml, and ConfigFile for your own YAML files.
Docs updated · What changed
On this page
config.ymlLink to this section
The file is plugins/ALBCore/config.yml. Invalid values fall back to the default with a console warning.
Database and player-data changes need a restart. /albcore reload applies webhooks, autosave interval and messages.
config-version: 1
database:
type: sqlite # sqlite | mysql
table-prefix: "alb_" # letters, digits, _
sqlite:
file: "database.db" # inside plugins/ALBCore/
mysql:
host: "localhost"
port: 3306
database: "minecraft"
username: "root"
password: ""
use-ssl: false
properties: {} # extra JDBC properties, e.g. serverTimezone: "UTC"
pool: # MySQL only; SQLite uses one connection
maximum-pool-size: 10
minimum-idle: 2
connection-timeout-ms: 10000
idle-timeout-ms: 600000
max-lifetime-ms: 1800000
keepalive-time-ms: 0
player-data:
storage: yaml # yaml | sqlite | mysql
autosave-interval-seconds: 300
load-timeout-seconds: 10
load-failed-message: "&cYour player data could not be loaded. Please try again in a moment."
discord:
webhooks: {}Webhooks are set up on the Discord logging page.
Your own YAML filesLink to this section
For extra YAML files in your own plugin, use ConfigFile. It copies the file from your jar on first use and falls back to the jar's values for keys the user's file is missing:
val levels = ConfigFile(this, "levels.yml")
val maxLevel = levels.config.getInt("max-level")
levels.reload()