private string API_GetFormattedUsername(IPlayer player) { var primary = ChatGroup.GetUserPrimaryGroup(player); // Player has no groups - this should never happen if (primary == null) { return(player.Name); } return($"[#{primary.Username.GetUniversalColor()}][+{primary.Username.Size}]{player.Name}[/+][/#]"); }
private string API_GetFormattedUsername(IPlayer player) { var primary = ChatGroup.GetUserPrimaryGroup(player); return($"[#{primary.Username.GetUniversalColor()}][+{primary.Username.Size}]{player.Name}[/+][/#]"); }