feat: receive groups by discord roles

Player can receive groups based on the discord roles they have, ace perms are also added when group is received.
This commit is contained in:
Andyyy7666
2024-02-29 22:28:25 +01:00
parent 898b9aefe9
commit c5597161d9
2 changed files with 7 additions and 0 deletions

View File

@@ -309,6 +309,12 @@ local function createCharacterTable(info)
self.addGroup("admin")
end
end
for group, role in pairs(Config.groupRoles)
if lib.table.contains(roles, role) then
self.addGroup(group)
end
end
end
for name, _ in pairs(self.groups) do