Not creating or adding players to groups
this does not seem to be creating or adding people to groups within oxide
fixed the code if any one needs let me know

Line 6767+6768 From:

foreach (var entry in factionData.Factions) { ConsoleSystem.Run(ConsoleSystem.Option.Server, $"usergroup remove {player.userID} {factionData.Factions[entry.Key].group}"); }
ConsoleSystem.Run(ConsoleSystem.Option.Server, $"usergroup add {player.userID} {factionData.Factions[faction].group}");

To:

foreach (var entry in factionData.Factions) { ConsoleSystem.Run(ConsoleSystem.Option.Server, $"oxide.usergroup remove {player.userID} {factionData.Factions[entry.Key].group}"); }
ConsoleSystem.Run(ConsoleSystem.Option.Server, $"oxide.usergroup add {player.userID} {factionData.Factions[faction].group}");

I'd suggest instead of commands:
permission.AddUserGroup(player.UserIDString, factionData.Factions[faction].group);​
Thanks Wulf

Merged post

Like this ?

foreach (var entry in factionData.Factions) { permission.AddUserGroup(player.UserIDToString, factionData.Factions[faction].group); }
permission.RemoveUserGroup(player.UserIDToString, factionData.Factions[faction].group);

bobberson
Thanks Wulf

Merged post

Like this ?

foreach (var entry in factionData.Factions) { permission.AddUserGroup(player.UserIDToString, factionData.Factions[faction].group); }
permission.RemoveUserGroup(player.UserIDToString, factionData.Factions[faction].group);

Looks fine.

thank you very much

Merged post

error CS1061: Type `BasePlayer' does not contain a definition for `UserIDToString' and no extension method `UserIDToString' of type `BasePlayer' could be found

bobberson
thank you very much

Merged post

error CS1061: Type `BasePlayer' does not contain a definition for `UserIDToString' and no extension method `UserIDToString' of type `BasePlayer' could be found

Err, sorry... UserIDString

You will have to excuse me Im clueless. What do I do?
thanks again

Merged post

it is no longer adding and removing players properly
bobberson
thanks again

Merged post

it is no longer adding and removing players properly
Those are the methods the commands use, but there won't be any feedback if the plugin doesn't account for something such as the group existing, player already in a group, etc.
bobberson if u have discord i can send u the working file i did