assigns the group before deeding the parcel
This commit is contained in:
parent
1e4d916e5a
commit
ff7481a501
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using BetterSecondBotShared.logs;
|
||||
using BetterSecondBotShared.Static;
|
||||
using OpenMetaverse;
|
||||
|
|
@ -28,6 +29,9 @@ namespace BSB.Commands.CMD_Parcel
|
|||
Parcel p = bot.GetClient.Network.CurrentSim.Parcels[localid];
|
||||
if (parcel_static.has_parcel_perm(p, bot) == true)
|
||||
{
|
||||
p.GroupID = groupuuid;
|
||||
p.Update(bot.GetClient.Network.CurrentSim, false);
|
||||
Thread.Sleep(1000);
|
||||
bot.GetClient.Parcels.DeedToGroup(bot.GetClient.Network.CurrentSim, localid, groupuuid);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue