From e1cb79f1fac864de5575ff15425bb65c64f23edf Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 10 Jul 2025 22:05:49 +0100 Subject: [PATCH] Update Estate.cs --- SecondBotEvents/Commands/Estate.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SecondBotEvents/Commands/Estate.cs b/SecondBotEvents/Commands/Estate.cs index 7dc4258..9e714fc 100644 --- a/SecondBotEvents/Commands/Estate.cs +++ b/SecondBotEvents/Commands/Estate.cs @@ -18,10 +18,15 @@ namespace SecondBotEvents.Commands [ReturnHintsFailure("Invaild inventoryNotecardUUID")] [ReturnHintsFailure("Unable to find notecard")] [ReturnHintsFailure("Item is not a notecard")] + [ReturnHintsFailure("Not an estate manager here")] [ArgHints("inventoryNotecardUUID", "the UUID of the notecard you wish to set as the estate covenant", "UUID")] [CmdTypeSet()] public object SetEstateCovenant(string inventoryNotecardUUID) { + if (GetClient().Network.CurrentSim.IsEstateManager == false) + { + return Failure("Not an estate manager here", [inventoryNotecardUUID]); + } if (UUID.TryParse(inventoryNotecardUUID, out UUID targetitem) == false) { return Failure("Invaild inventoryNotecardUUID", [inventoryNotecardUUID]);