Skip to content

Database

BK-Gradients stores all player data in SQL. Configure the database type in config.yml.


EngineWhen to use
SQLiteDefault — single server, no extra setup
MySQLMulti-server networks sharing cosmetic data

database:
type: SQLITE # or MYSQL
sqlite:
file: data.db
mysql:
host: localhost
port: 3306
database: bkgradients
username: root
password: ""
pool:
maximum-pool-size: 10
minimum-idle: 2
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000

TableContents
bkg_prefixEach player’s prefix text, colors, styles and visibility
bkg_prefix_historyPrefix history entries
bkg_nickNick colors and styles
bkg_nick_historyNick history entries
bkg_suffixSuffix text, colors, styles and visibility
bkg_suffix_historySuffix history entries
bkg_tagsActive tag ID, colors and visibility
bkg_tags_historyTag history entries
bkg_tags_favouritesFavourite tag IDs per player