2008-09-15 22:12:56 +00:00
|
|
|
namespace OpenMetaverse.TestClient
|
|
|
|
|
{
|
|
|
|
|
public class GoHomeCommand : Command
|
|
|
|
|
{
|
|
|
|
|
public GoHomeCommand(TestClient testClient)
|
|
|
|
|
{
|
|
|
|
|
Name = "gohome";
|
2008-07-25 08:55:36 +00:00
|
|
|
Description = "Teleports home";
|
2008-09-15 22:12:56 +00:00
|
|
|
Category = CommandCategory.Movement;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
|
|
|
|
{
|
|
|
|
|
if ( Client.Self.GoHome() ) {
|
|
|
|
|
return "Teleport Home Succesful";
|
|
|
|
|
} else {
|
|
|
|
|
return "Teleport Home Failed";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|