Mods / Th3ServerStats

Tags:
Utility
Author:
Th3Dilli
Side:
Server
Created:
Jul 1st 2022 at 1:45 PM
Last modified:
Apr 22nd at 9:50 AM
Downloads:
2201
Follow Unfollow 13
Latest release (for Vintage Story 1.18.15, 1.19.8, 1.20.12, 1.21.0, 1.21.1 and 1.22.0-pre.1 - 1.22.0, potentially outdated):
th3serverstats_0.2.1.zip  1-click install

This mod exposes a HTTP server that serves server statistics in JSON format by default on http://localhost:42421/stats (if server port is 42420).
The default port used is game port + 1.

You can change the host, port and the endpoint within the modconfig Th3ServerStatsConfig.json

It was created to allow TCAdmin to read server information of the game server through a custom query script.

 

Side

- 1 Server
- 2 Client
- 3 Universal

{
  "ServerName": "Vintage Story Server",
  "WorldName": "A new world",
  "WorldType": "standard",
  "OnlinePlayers": 1,
  "MaxPlayers": 16,
  "Players": [
    {
      "Name": "Th3Dilli",
      "Ping": 0.293
    }
  ],
  "Mods": [
    {
      "Name": "Essentials",
      "Version": "1.18.15",
      "ModId": "game",
      "Side": 3
    },
    {
      "Name": "Server Stats",
      "Version": "0.2.0",
      "ModId": "th3serverstats",
      "Side": 1
    },
    {
      "Name": "Creative Mode",
      "Version": "1.18.15",
      "ModId": "creative",
      "Side": 3
    },
    {
      "Name": "Survival Mode",
      "Version": "1.18.15",
      "ModId": "survival",
      "Side": 3
    }
  ]
}

 

For more information see the readme at the repository 

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
0.2.1 th3serverstats
1.22.0-pre.1 - 1.22.0
83 Sep 10th 2025 at 8:23 AM th3serverstats_0.2.1.zip 1-click install

add mod file name and mod dependencies

0.2.0 th3serverstats
1.20.11 - 1.21.0-pre.1
1274 Dec 16th 2023 at 3:32 PM th3serverstats_0.2.0.zip 1-click install

- add mods to stats
- updated to net7 mod template

0.1.1 th3serverstats
1.16.5 - 1.17.0-pre.0
427 Jul 1st 2022 at 6:42 PM th3serverstats_0.1.1.zip 1-click install

fixed bug that would allow endpoints that contain only the actual endpoint name to still reply with correct data (/stats and /stats1234 - did the same)

0.1.0 th3serverstats 417 Jul 1st 2022 at 5:15 PM th3serverstats_0.1.0.zip 1-click install

initial release


2 Comments (oldest first | newest first) (threaded | flat)

Th3Dilli , Mar 30th at 2:27 PM

you can set 
"Port": 1234

in the config

DejFidOFF, Mar 30th at 12:14 PM

Th3Dilli

Hey o/ a good idea. Will be nice if the port have config. I have more servers than one counting from 42420