DUXPLIMA Documentation

Overview

What is stored, the tables, sharing one database across servers, and moving off SQLite.

The item is the truth, so no table ever holds an enchantment. The database holds what outlives a restart per player: the description toggle, and the cooldowns when cooldowns.persist is on.

BackendFor
SQLiteOne server. The default
MySQL and MariaDBA network sharing the toggle and cooldowns
PostgreSQLThe same, on PostgreSQL

Tables

TableHolds
uxmenchants_playerOne row per player who used /enchants descriptions: descriptions 1 or 0
uxmenchants_cooldownOne row per persisted cooldown: the player, the enchantment, and when it ends in milliseconds
uxmenchants_schema_historyThe version the tables are at

A network

Point every server at the same database with the same table-prefix. sync-seconds (2) is how often a server reads what the others changed for the players on it: the description toggle.

Keeping one server apart

local-only = true keeps one server on its own SQLite file, whatever type says.

Moving off SQLite

  1. Create the database and a user.
  2. Set type, host, port, database, username, password, and copy-from-file = true.
  3. Restart once. The rows are copied into the empty tables, and the console says how many.

Related: config.conf