From 8f79b4949513380c3fba2b572743d1769df8fde0 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Sat, 27 Sep 2025 22:22:19 +0100 Subject: [PATCH] Update ParcelCommands.cs --- SecondBotEvents/Commands/ParcelCommands.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/SecondBotEvents/Commands/ParcelCommands.cs b/SecondBotEvents/Commands/ParcelCommands.cs index 58c30bd..1782056 100644 --- a/SecondBotEvents/Commands/ParcelCommands.cs +++ b/SecondBotEvents/Commands/ParcelCommands.cs @@ -34,6 +34,24 @@ namespace SecondBotEvents.Commands [ClassInfo("Control the land under our feet")] public partial class ParcelCommands(EventsSecondBot setmaster) : CommandsAPI(setmaster) { + + [About("Resets the current parcels access lists")] + [ReturnHints("ok")] + [ReturnHintsFailure("Error not in a sim")] + [ReturnHintsFailure("Parcel data not ready")] + [CmdTypeDo()] + public object ResetParcelAcccessLists() + { + KeyValuePair tests = SetupCurrentParcel(); + if (tests.Key == false) + { + return Failure(tests.Value); + } + targetparcel.AccessBlackList.Clear(); + targetparcel.AccessWhiteList.Clear(); + targetparcel.Update(GetClient()); + return BasicReply("ok"); + } [About("Requests the current parcel local id")] [ReturnHints("parcel local id (int)")] [ReturnHintsFailure("Error not in a sim")]