mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-18 02:58:33 +00:00
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:
1 parent
898b9aefe9
commit
c5597161d9
2 files changed
+7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user