Player Stats & Leaderboards
XDiscordUltimate automatically tracks player activity and can publish a live, auto-updating leaderboard embed to a Discord channel. Two modules work together here:player-stats (collection) and leaderboard (presentation).
What’s Tracked
Theplayer-stats module writes to the player_stats table. Each row holds:
| Field | Description |
|---|---|
joins | Number of times the player has joined the server |
messages_sent | Total in-game chat messages sent |
deaths | Total deaths |
playtime_minutes | Accumulated playtime, in minutes |
first_join | Timestamp of the player’s first join |
last_seen | Timestamp of the player’s most recent activity |
Commands
Player Stats Configuration
Theplayer-stats module only needs an enable toggle — tracking is fully automatic.
Leaderboard Configuration
Theleaderboard module edits a single embed in place on each update-interval, using data from the player_stats table.
The bot edits the same message every interval rather than posting a new one. Point
message-id at an existing message the bot has permission to edit, and the leaderboard will never clutter your channel.Next Steps
Economy Bridge
Link Discord users to in-game balances via Vault.
Database
Read the schema backing
player_stats and other modules.
