From 48375acd7d6581b42b354618ed694a9d1cd25439 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sat, 18 Oct 2025 20:37:00 -0300 Subject: overall improvements + keep up with querymanager v0.2 --- templates/world_info.tmpl | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'templates/world_info.tmpl') diff --git a/templates/world_info.tmpl b/templates/world_info.tmpl index 578a0f7..353b674 100644 --- a/templates/world_info.tmpl +++ b/templates/world_info.tmpl @@ -16,13 +16,24 @@ {{.NumPlayers}} - Online Record: - {{if .OnlineRecord}} - {{.OnlineRecord}} players (on {{.OnlineRecordTime}}) + Online Peak: + {{if eq .OnlinePeak 1}} + {{.OnlinePeak}} player (on {{FormatTimestamp .OnlinePeakTimestamp}}) + {{else if gt .OnlinePeak 1}} + {{.OnlinePeak}} players (on {{FormatTimestamp .OnlinePeakTimestamp}}) {{else}} None {{end}} + + {{if gt .LastStartup .LastShutdown}} + Uptime: + {{FormatDurationSince .LastStartup}} + {{else}} + Downtime: + {{FormatDurationSince .LastShutdown}} + {{end}} + Kill Statistics {{else}} -- cgit v1.2.3