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:
@ -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)
|
||||
|
Reference in New Issue
Block a user