TDXPlugins
TDX LeaderboardsConfiguration

general

Update interval, leaderboard size, storage backend selector, debug toggle.

The general block is the smallest section in config.yml but the one that decides how the rest of the plugin behaves at runtime.

Quick example

plugins/TDXLeaderboards/config.yml
general:
  storage: sqlite       # sqlite | mysql
  update-interval: 60   # seconds between board refreshes
  top-n: 10             # rows shown in every board GUI
  debug: false

That's the entire block on a default install. For most servers, the defaults are correct.

Reference

KeyTypeDefaultWhat it does
storagestringsqliteStorage backend selector. sqlite or mysql. Reload does not switch.
update-intervalint60Seconds between board refreshes. Lower = more current, higher = lighter.
top-nint10How many rows each board GUI shows. Affects every board.
debugbooleanfalseVerbose logging to latest.log and per-day file under logs/.

Tuning notes

  • update-interval trades freshness for CPU. On a 100-player server, 60 seconds is invisible. Below 10 seconds you'll start to see the update task in /timings.
  • top-n affects the GUI layout and the per-board cache. Bumping it from 10 to 25 is fine; bumping it past 50 starts to chew memory and slow down the click handlers.
  • debug is safe to leave on temporarily. It does not spam chat — output goes to the log only.

Switching storage from sqlite to mysql (or back) is not reload-safe and does not migrate data. See the Storage page for the migration procedure.