2007-05-21 04:30:31 +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-05-21 04:30:31 +00:00
|
|
|
|
2008-07-21 21:12:59 +00:00
|
|
|
namespace OpenMetaverse.TestClient
|
2007-05-21 04:30:31 +00:00
|
|
|
{
|
2007-05-21 05:52:28 +00:00
|
|
|
public class GoHomeCommand : Command
|
2007-05-21 04:30:31 +00:00
|
|
|
{
|
2007-05-21 05:52:28 +00:00
|
|
|
public GoHomeCommand(TestClient testClient)
|
2007-05-21 04:30:31 +00:00
|
|
|
{
|
2007-05-21 05:52:28 +00:00
|
|
|
Name = "gohome";
|
|
|
|
|
Description = "Teleports home";
|
2007-05-21 04:30:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Execute(string[] args, LLUUID fromAgentID)
|
|
|
|
|
{
|
2007-05-21 05:52:28 +00:00
|
|
|
if ( Client.Self.GoHome() ) {
|
|
|
|
|
return "Teleport Home Succesful";
|
|
|
|
|
} else {
|
|
|
|
|
return "Teleport Home Failed";
|
|
|
|
|
}
|
2007-05-21 04:30:31 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|