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