From bbb7405dcdf46b0c20eba219b348f402bef622fb Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Wed, 9 Apr 2025 19:33:20 +0100 Subject: [PATCH] adds ParcelReturnAll --- SecondBotEvents/Commands/ParcelCommands.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SecondBotEvents/Commands/ParcelCommands.cs b/SecondBotEvents/Commands/ParcelCommands.cs index e393fb3..e8be946 100644 --- a/SecondBotEvents/Commands/ParcelCommands.cs +++ b/SecondBotEvents/Commands/ParcelCommands.cs @@ -696,6 +696,16 @@ namespace SecondBotEvents.Commands return BasicReply("ok", [avatar]); } + [About("Returns all objects from the current parcel for all avatars")] + [ReturnHints("ok")] + [ReturnHintsFailure("Error not in a sim")] + [ReturnHintsFailure("Parcel data not ready")] + public object ParcelReturnAll() + { + GetClient().Parcels.ReturnObjects(GetClient().Network.CurrentSim, targetparcel.LocalID, ObjectReturnType.None, null); + return BasicReply("ok"); + } + [About("transfers the current parcel ownership to the assigned group")] [ReturnHints("ok")]