Update ParcelCommands.cs

This commit is contained in:
Madpeter 2025-09-27 22:22:19 +01:00
parent c0be75434c
commit 8f79b49495

View file

@ -34,6 +34,24 @@ namespace SecondBotEvents.Commands
[ClassInfo("Control the land under our feet")] [ClassInfo("Control the land under our feet")]
public partial class ParcelCommands(EventsSecondBot setmaster) : CommandsAPI(setmaster) 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<bool, string> 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")] [About("Requests the current parcel local id")]
[ReturnHints("parcel local id (int)")] [ReturnHints("parcel local id (int)")]
[ReturnHintsFailure("Error not in a sim")] [ReturnHintsFailure("Error not in a sim")]