add GetCurrentRegionType

This commit is contained in:
Madpeter 2025-07-09 18:01:35 +01:00
parent 18c2334e8c
commit 1754b099c0

View file

@ -10,6 +10,20 @@ namespace SecondBotEvents.Commands
[ClassInfo("What is going on with the bot")]
public class Info(EventsSecondBot setmaster) : CommandsAPI(setmaster)
{
[About("Fetchs the current region type the bot is in")]
[ReturnHints("Region type as string")]
[ReturnHintsFailure("Error not in a sim")]
[CmdTypeGet()]
public object GetCurrentRegionType()
{
if(GetClient().Network.CurrentSim == null)
{
return Failure("Error not in a sim");
}
return BasicReply(GetClient().Network.CurrentSim.ProductName);
}
[About("Lists objects that are sculpty type in the current sim that the bot can see")]
[ReturnHints("A json object")]
[CmdTypeGet()]