1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

track match start/end time where possible

This commit is contained in:
RaidMax
2022-10-23 13:32:09 -05:00
parent 34cafc4066
commit 5b7e56f894
3 changed files with 13 additions and 4 deletions

View File

@ -673,7 +673,7 @@ namespace IW4MAdmin
else if (E.Type == GameEvent.EventType.MapChange)
{
ServerLogger.LogInformation("New map loaded - {clientCount} active players", ClientNum);
ServerLogger.LogInformation("New map loaded - {ClientCount} active players", ClientNum);
// iw4 doesn't log the game info
if (E.Extra == null)
@ -737,6 +737,8 @@ namespace IW4MAdmin
{
lastGameTime = E.GameTime.Value;
}
MatchStartTime = DateTime.Now;
}
else if (E.Type == GameEvent.EventType.MapEnd)
@ -747,6 +749,8 @@ namespace IW4MAdmin
{
lastGameTime = E.GameTime.Value;
}
MatchEndTime = DateTime.Now;
}
else if (E.Type == GameEvent.EventType.Tell)