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

-webfront now displays player info and link to repz account

-fixed time span issue in webfront
-fixed crash when RCON stops responding and removing a player
-version on footer
This commit is contained in:
RaidMax
2015-04-12 23:25:34 -05:00
parent 8e31cbe138
commit 65b65716d2
18 changed files with 339 additions and 81 deletions

View File

@ -203,16 +203,7 @@ namespace IW4MAdmin
public String getLastConnection()
{
TimeSpan Elapsed = DateTime.Now - LastConnection;
if (Elapsed.Minutes < 60)
return Elapsed.Minutes + " minutes";
if (Elapsed.Hours <= 24)
return Elapsed.Hours + " hours";
if (Elapsed.Days <= 365)
return Elapsed.Days + " days";
else
return "a very long time";
return Utilities.timePassed(LastConnection);
}
public void updateName(String n)