1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

update 'uptime' output

use translations for certain webfront page meta that was neglected
update plutonium parsers to not use new line in notices as it is not supported
This commit is contained in:
RaidMax
2021-01-08 19:21:23 -06:00
parent 95643f6a2d
commit 0387b6bd23
9 changed files with 15 additions and 14 deletions

View File

@ -830,9 +830,9 @@ namespace SharedLibraryCore.Commands
public override Task ExecuteAsync(GameEvent E)
{
TimeSpan uptime = DateTime.Now - System.Diagnostics.Process.GetCurrentProcess().StartTime;
var uptime = DateTime.Now - System.Diagnostics.Process.GetCurrentProcess().StartTime;
var loc = _translationLookup;
E.Origin.Tell(loc["COMMANDS_UPTIME_TEXT"].FormatExt(uptime.Days, uptime.Hours, uptime.Minutes));
E.Origin.Tell(loc["COMMANDS_UPTIME_TEXT"].FormatExt(uptime.HumanizeForCurrentCulture(4)));
return Task.CompletedTask;
}
}