Hi there!
So I have a list of data like this.
{
"Clans": {
"OXIDE": [
"123123123",
"321321321"
]
}
}
I want to be able to remove a clan tag by simply typing /clan remove <clan> but since the clans are nested within "Clans" above it is not working. The Remove() that oxide provides only takes 1 argument. How can I remove something nested inside of something? This is what the code looks like right now but it is not working since I have 2 arguments inside the Remove(), like this Remove("Clans", clanTag").
void RemoveClan(string clanTag)
{
if(clanData["Clans", clanTag] != null)
{
clanData.Remove("Clans", clanTag);
clanData.Save();
}
}
Thanks in advance!