Skip to content

Commit

Permalink
Prefer keeping player names in color so the import does not reset it
Browse files Browse the repository at this point in the history
  • Loading branch information
linaori committed Mar 12, 2024
1 parent 4877573 commit bd22a5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,9 @@ function Namespace.Config.GetConfigurationSetup()
end

local playerData = GetPlayerDataByName(playerName)
config.groupLabel = playerData and playerData.classColor:WrapTextInColorCode(playerName)
if not config.groupLabel then
config.groupLabel = playerData and playerData.classColor:WrapTextInColorCode(playerName) or config.groupLabel

if not config.groupLabel:match('|c(.+)|r') then
config.groupLabel = type(incoming.gl) == 'string' and incoming.gl:gsub('%[c', '|c'):gsub('%[r', '|r') or playerName
end

Expand Down

0 comments on commit bd22a5a

Please sign in to comment.