SecondBot/Secondbot/Core/Commands/Parcel/ParcelDeedToGroup.cs
2021-02-14 01:21:35 +00:00

22 lines
757 B
C#

using System.Threading;
namespace BSB.Commands.CMD_Parcel
{
public class ParcelDeedToGroup : ParcelCommand_RequirePerms_1arg_Group
{
public override string Helpfile { get { return "transfers the current parcel ownership to a group"; } }
public override bool CallFunction(string[] args)
{
if (base.CallFunction(args) == true)
{
targetparcel.GroupID = groupuuid;
targetparcel.Update(bot.GetClient.Network.CurrentSim, false);
Thread.Sleep(1000);
bot.GetClient.Parcels.DeedToGroup(bot.GetClient.Network.CurrentSim, targetparcel.LocalID, groupuuid);
return true;
}
return false;
}
}
}