2007-04-28 20:54:02 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
2008-07-21 21:12:59 +00:00
|
|
|
using OpenMetaverse;
|
|
|
|
|
using OpenMetaverse.Packets;
|
2007-04-28 20:54:02 +00:00
|
|
|
|
2008-07-21 21:12:59 +00:00
|
|
|
namespace OpenMetaverse.TestClient
|
2007-04-28 20:54:02 +00:00
|
|
|
{
|
|
|
|
|
public class UptimeCommand : Command
|
|
|
|
|
{
|
|
|
|
|
public DateTime Created = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
public UptimeCommand(TestClient testClient)
|
|
|
|
|
{
|
|
|
|
|
Name = "uptime";
|
|
|
|
|
Description = "Shows the login name, login time and length of time logged on.";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Execute(string[] args, LLUUID fromAgentID)
|
|
|
|
|
{
|
|
|
|
|
string name = Client.ToString();
|
|
|
|
|
return "I am " + name + ", Up Since: " + Created + " (" + (DateTime.Now - Created) + ")";
|
|
|
|
|
}
|
|
|
|
|
}
|
2006-12-16 16:51:04 +00:00
|
|
|
}
|