Update Estate.cs
This commit is contained in:
parent
33a069df25
commit
e1cb79f1fa
1 changed files with 5 additions and 0 deletions
|
|
@ -18,10 +18,15 @@ namespace SecondBotEvents.Commands
|
||||||
[ReturnHintsFailure("Invaild inventoryNotecardUUID")]
|
[ReturnHintsFailure("Invaild inventoryNotecardUUID")]
|
||||||
[ReturnHintsFailure("Unable to find notecard")]
|
[ReturnHintsFailure("Unable to find notecard")]
|
||||||
[ReturnHintsFailure("Item is not a 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")]
|
[ArgHints("inventoryNotecardUUID", "the UUID of the notecard you wish to set as the estate covenant", "UUID")]
|
||||||
[CmdTypeSet()]
|
[CmdTypeSet()]
|
||||||
public object SetEstateCovenant(string inventoryNotecardUUID)
|
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)
|
if (UUID.TryParse(inventoryNotecardUUID, out UUID targetitem) == false)
|
||||||
{
|
{
|
||||||
return Failure("Invaild inventoryNotecardUUID", [inventoryNotecardUUID]);
|
return Failure("Invaild inventoryNotecardUUID", [inventoryNotecardUUID]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue