git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@729 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -6,19 +6,20 @@ using libsecondlife.Packets;
|
||||
|
||||
namespace libsecondlife.TestClient
|
||||
{
|
||||
public class UptimeCommand: Command
|
||||
public class UptimeCommand : Command
|
||||
{
|
||||
public DateTime Created = DateTime.Now;
|
||||
public DateTime Created = DateTime.Now;
|
||||
|
||||
public UptimeCommand()
|
||||
{
|
||||
Name = "uptime";
|
||||
Description = "Shows the login time and length of time logged on.";
|
||||
}
|
||||
public UptimeCommand()
|
||||
{
|
||||
Name = "uptime";
|
||||
Description = "Shows the login name, login time and length of time logged on.";
|
||||
}
|
||||
|
||||
public override string Execute(SecondLife Client, string[] args, LLUUID fromAgentID)
|
||||
{
|
||||
return "Up Since: " + Created + " (" + (DateTime.Now - Created) + ")";
|
||||
}
|
||||
{
|
||||
string name = Client.ToString();
|
||||
return "I am " + name + ", Up Since: " + Created + " (" + (DateTime.Now - Created) + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,10 +23,10 @@
|
||||
- datetime::parse('01/01/2002'))))}" />
|
||||
<property
|
||||
name="assembly"
|
||||
value="TestCommand"/>
|
||||
value="TestClient"/>
|
||||
<property
|
||||
name="bin_dir"
|
||||
value="../../bin" />
|
||||
value="../../../bin" />
|
||||
|
||||
<!-- default configuration -->
|
||||
<property
|
||||
@@ -74,7 +74,7 @@
|
||||
<!-- build tasks -->
|
||||
<target
|
||||
name="build"
|
||||
depends="init build-dll"
|
||||
depends="init"
|
||||
description="Builds the binaries for the current configuration">
|
||||
<echo message="Build Directory is ${bin_dir}/" />
|
||||
<mkdir
|
||||
|
||||
Reference in New Issue
Block a user