Skip to content

Commit

Permalink
Fix name color bug on DidVote chatnote
Browse files Browse the repository at this point in the history
  • Loading branch information
scp222thj committed Jun 10, 2024
1 parent 4b678b9 commit 7877733
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Utilities/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ public static string getNameTag(PlayerControl player, string playerName, bool is

} else if (PlayerControl.LocalPlayer.Data.Role.NameColor == player.Data.Role.NameColor){

if (isChat){
return nameTag;
}

nameTag = $"<color=#{ColorUtility.ToHtmlStringRGB(player.Data.Role.NameColor)}>{nameTag}</color>";

}
Expand Down

0 comments on commit 7877733

Please sign in to comment.