New command: SendTeleportLure
This commit is contained in:
parent
c2dd0cf5ff
commit
2cd999ebe6
1 changed files with 25 additions and 0 deletions
25
Core/Commands/Movement/SendTeleportLure.cs
Normal file
25
Core/Commands/Movement/SendTeleportLure.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
using OpenMetaverse;
|
||||||
|
|
||||||
|
namespace BSB.Commands.Movement
|
||||||
|
{
|
||||||
|
public class SendTeleportLure : CoreCommand_1arg
|
||||||
|
{
|
||||||
|
public override string[] ArgTypes { get { return new[] { "Avatar" }; } }
|
||||||
|
public override string[] ArgHints { get { return new[] { "Avatar UUID or Firstname Lastname" }; } }
|
||||||
|
public override string Helpfile { get { return "Make the bot request the target avatar teleport to the bot"; } }
|
||||||
|
|
||||||
|
public override bool CallFunction(string[] args)
|
||||||
|
{
|
||||||
|
if(base.CallFunction(args) == true)
|
||||||
|
{
|
||||||
|
if(UUID.TryParse(args[0],out UUID avatar) == true)
|
||||||
|
{
|
||||||
|
bot.GetClient.Self.SendTeleportLure(avatar);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return Failed("Unable to process avatar on arg 1");
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue