-
Notifications
You must be signed in to change notification settings - Fork 0
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.
set g_xpSave 1
This is a latch cvar -- it takes effect after the next map change or map_restart.
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"
Limit the maximum XP a player can accumulate:
set g_xpCap 5000
0 = no cap (default).
Limits the XP value shown on the scoreboard without penalising players for earning more:
set g_xpMax 2000
0 = no limit (default).
Award XP for dealing damage, not just for kills:
set g_damagexp 1
| 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 |
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.
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.