Skip to content

XP Save

Claude edited this page Apr 15, 2026 · 1 revision

XP Save

Jaymod can persist player XP across map changes and server restarts. XP is stored per player in user.db, keyed by GUID and IP.


Enabling XP Save

set g_xpSave 1

This is a latch cvar -- it takes effect after the next map change or map_restart.


Timeout

Saved XP expires after a configurable duration. Examples:

Input Meaning
1d 1 day
2h 2 hours
30m 30 minutes
3600s 3600 seconds
10d4h 10 days and 4 hours
set g_xpSaveTimeout "1h"

XP Cap

Limit the maximum XP a player can accumulate:

set g_xpCap 5000

0 = no cap (default).


XP Max (scoreboard display)

Limits the XP value shown on the scoreboard without penalising players for earning more:

set g_xpMax 2000

0 = no limit (default).


Damage XP

Award XP for dealing damage, not just for kills:

set g_damagexp 1

Cvar reference

Cvar Default Description
g_xpSave 0 Enable XP persistence (latch)
g_xpSaveTimeout 1h Duration before saved XP expires
g_xpCap 0 Maximum XP a player can accumulate (0 = no cap)
g_xpMax 0 Maximum XP shown on scoreboard (0 = no limit)
g_damagexp 0 Award XP for damage dealt

Storage

XP data is stored in user.db alongside player account info, bans, mutes and greetings. The server loads this file at startup and saves it on shutdown. Use !reload to reload from disk without restarting.


Per-map records

Killing-spree records and other per-map statistics are stored in map.db. This file can be edited offline to reset records for a specific map.

Clone this wiki locally