OpenSimMirror/tools/mass test client/Commands/GoHome.cs

27 lines
567 B
C#
Raw Normal View History

2007-06-21 17:08:21 +00:00
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;
namespace libsecondlife.TestClient
{
public class GoHomeCommand : Command
{
public GoHomeCommand(TestClient testClient)
{
Name = "gohome";
Description = "Teleports home";
}
public override string Execute(string[] args, LLUUID fromAgentID)
{
if ( Client.Self.GoHome() ) {
return "Teleport Home Succesful";
} else {
return "Teleport Home Failed";
}
}
}
}