add support to get the object owner name for interaction events

This commit is contained in:
Madpeter 2024-09-24 10:29:14 +01:00
parent 1009526b79
commit 8aae7c5d46

View file

@ -63,12 +63,18 @@ namespace SecondBotEvents.Services
return false;
}
bool accepted = false;
string ObjectOwnerName = master.DataStoreService.GetAvatarName(avataruuid);
string whyAccepted = "rejected request";
if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == true)
{
whyAccepted = "on owners list";
return true;
}
else if (master.CommandsService.myConfig.GetMastersCSV().Contains(ObjectOwnerName) == true)
{
whyAccepted = "Object Owner is on master list";
return true;
}
else if (ConfigAcceptLevel == "Anyone")
{
whyAccepted = "Accepting from anyone";