Skip to content

Player Stats ​

Plugin ID: cn.hayashiume.playerstatsConfig file: [Empostor.Plugins.PlayerStats]Config.json

ReferenceWhere
ConfigurationConfig.json
Commands#stat
Admin PanelStatistics tab
HTTP APIEndpoints

Commands ​

CommandAliasesUsagePermission
#stat#stats, #mystatsstatEveryone

Returns the caller's own statistics as a private message. Requires Enabled to be true.

Tracked metrics

FieldDescription
Games PlayedTotal games participated in
WinsGames won as crewmate
LossesGames lost as crewmate
Impostor WinsGames won as impostor
KillsTotal kills performed
DeathsTotal times killed
Tasks CompletedTotal tasks completed
Times ExiledTotal times voted out

Configuration ​

Edit [Empostor.Plugins.PlayerStats]Config.json next to the plugin DLL. Created with defaults on first start.

json
{
  "Enabled": false,
  "PersistToFile": true
}
FieldTypeDefaultDescription
EnabledboolfalseWhether statistics are recorded. When false, game events are ignored and nothing is tracked.
PersistToFilebooltrueWrite stats to Data/player_stats.json. When false, stats are memory-only and lost on restart.

Statistics are off by default

Tracking stays off until Enabled is set to true. Players running #stat on a disabled server get a "not enabled" message.

Admin Panel ​

Statistics tab:

ControlAction
Enable / Disable toggleTurns recording on or off
RefreshReloads the table
Reset All StatsClears all player statistics (requires confirmation)

Columns: Friend Code, Name, Games, Wins, Losses, Imp. Wins, Kills, Deaths, Tasks, Exiled — sorted by games played.

API ​

MethodPathDescription
GET/api/admin/player/statsAll player stats, sorted by games played
GET/api/admin/player/stats/{friendCode}Stats for a single player
POST/api/admin/player/stats/resetClear all statistics (requires auth)

All endpoints sit under /api/admin/ and return 401 without a valid session cookie.

Storage ​

Persisted to Data/player_stats.json when PersistToFile is true, keyed by friend code.

  • Commands — full list of in-game commands.
  • Admin API — authentication and other admin endpoints.