DUXPLIMA Documentation

config.conf

Every key of config.conf, block by block, with its default and what it does.

language

KeyDefaultMeaning
default"en"What a player reads when nothing else answers: they chose none, and their client reports a language this server does not have, or follow-client is off
follow-clienttrueA player who chose nothing reads the language their client is set to. Off starts every player in the default
force""One language for everybody, whatever they chose and whatever their client says; empty for none

storage

KeyDefaultMeaning
type"sqlite"sqlite, mysql, mariadb or postgresql
file"languages.db"The SQLite file, inside data/
host, port"localhost", 0Port 0 is 3306 for MySQL and MariaDB, 5432 for PostgreSQL
database, username, password"minecraft", "minecraft", ""Never put the file in git with a real password
table-prefix"uxmlang_"Before every table name
pool-size4Connections the pool may open; SQLite uses one
local-onlyfalseThis one server keeps its rows in the SQLite file
copy-from-filefalseCopies the SQLite file's rows into an empty network database at the next start

network

KeyDefaultMeaning
transport"none"none or redis; the driver is in the jar
server-name""This server's id on the channel; empty makes a new one on every start
redis.host"127.0.0.1"
redis.port6379
redis.user""Empty sends the password alone
redis.password""
redis.database0
redis.sslfalse
redis.channel"uxmlang"

effects

effects {
  changed = [ "[message] @language.changed" ]
  already = [ "[message] @language.already" ]
  reset   = [ "[message] @language.reset" ]
}

Each list runs in order through uxmLib's action engine, with no limit on its length. The verbs are [message], [broadcast], [actionbar], [title], [subtitle], [bossbar], [particle], [sound], [effect], [console] and [player], plus [give-money] and [take-money] with Vault; each may carry {delay=, chance=, repeat=, every=, if=} after the verb. Text that starts with @ names a line of the messages files. <language> is the language's name. An empty list is silence and stays empty; only a block you delete comes back.

KeyDefault
menu.sounds.clickblock.note_block.pling, 0.6, 1.5
menu.sounds.pageitem.book.page_turn, 0.7, 1.0
menu.sounds.deniedblock.note_block.bass, 0.6, 0.9

A sound is named by its vanilla key; an empty name silences it. A button whose own actions play a sound plays that sound alone.

Related: Configuration