From 4b27010dddbb82bc68deb5ac8901f7c5eee1e609 Mon Sep 17 00:00:00 2001 From: AlessandroCH Date: Tue, 11 Mar 2025 17:29:59 +0100 Subject: [PATCH] more server status info --- Campofinale/Http/Dispatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Campofinale/Http/Dispatch.cs b/Campofinale/Http/Dispatch.cs index 6fa4237..5338ef5 100644 --- a/Campofinale/Http/Dispatch.cs +++ b/Campofinale/Http/Dispatch.cs @@ -68,7 +68,7 @@ namespace Campofinale.Http [StaticRoute(HttpServerLite.HttpMethod.GET, "/serverStatus")] public static async Task serverStatus(HttpContext ctx) { - string resp = "{\"maxPlayers\":" + Server.config.serverOptions.maxPlayers + ", \"players\":" + Server.clients.Count + ", \"status\":\"Online\"}"; + string resp = "{\"maxPlayers\":" + Server.config.serverOptions.maxPlayers + ", \"players\":" + Server.clients.Count + ", \"status\":\"Online\", \"gameVersion\":" + GameConstants.GAME_VERSION + ", \"serverVersion\":" + Server.ServerVersion + "}"; ctx.Response.StatusCode = 200; ctx.Response.ContentLength = resp.Length;