fix(groups): group data & client getting

This commit is contained in:
Andyyy7666
2026-03-20 14:58:54 +01:00
parent b06df2aae6
commit 0e6caf7996
2 changed files with 6 additions and 3 deletions

View File

@@ -405,16 +405,18 @@ local function createCharacterTable(info)
function self.addGroup(name, rank, customGroup, isJob)
local groupRank = tonumber(rank) or 1
local groupInfo = Config.groups?[name] or {}
local rankData = groupInfo?.ranks?[groupRank]
local rankData = groupInfo?.ranksData?[groupRank]
local groupLabel = groupInfo?.label or name
local rankName = rankData?.label or groupRank
local isBoss = rankData?.isBoss or false
local metadata = groupInfo?.metadata or {}
if customGroup then
if customGroup.label then groupLabel = customGroup.label end
if customGroup.rankName then rankName = customGroup.rankName end
if customGroup.isBoss ~= nil then isBoss = customGroup.isBoss end
if customGroup.metadata then metadata = customGroup.metadata end
end
if isJob then
@@ -429,7 +431,8 @@ local function createCharacterTable(info)
rankName = rankName,
rank = groupRank,
isJob = isJob,
isBoss = isBoss
isBoss = isBoss,
metadata = metadata
}
if not isJob then