Need help with lang file place holders

The chat message prints out "You must wait 0 to use this command again!" however it should be printing out "you must wait 1700 to use this command again" but its not It works when i print it to console using Console.WriteLine however it doesn't work in game with player.ChatMessage as the placeholder mustnt be working and im not sure why

//Lang File
                ["CommandCooldown"] = "You must wait <color=red>{0}</color> to use this command again!",

//Main Code
var time = configData.defcooldown - seconds;

player.ChatMessage(Lang("CommandCooldown", player.UserIDString, time));
//This returns in chat "You must wait 0 to use this command again!"
//How ever if I do this
Console.WriteLine($"{time} remaining");
//It will work and send the actual time in the console​

Try this instead:

player.ChatMessage(String.Format(lang.GetMessage("CommandCooldown", this, player.UserIDString), time));

 

Hi, Ive replaced the code and still having the same issue here is a picture below

https://imgur.com/a/0coTPmz

Also could this have something to do with it

 [ChatCommand("repair")]
        private void repairCMD(BasePlayer player, string Command, string[] args)
        {
            if (permission.UserHasPermission(player.UserIDString, "repairs.use") &! permission.UserHasPermission(player.UserIDString, "viprepairs.use"))
            {
                if (repairTimes.ContainsKey(player.UserIDString))
                {
                    var lastCommandUse = repairTimes[player.UserIDString];
                    var seconds = (DateTime.Now - lastCommandUse).Seconds;

                    if (seconds < configData.defcooldown)   
                    {
                        var time = configData.defcooldown - seconds;
                        Console.WriteLine($"{time} remaining");
                        player.ChatMessage(String.Format(lang.GetMessage("CommandCooldown", this, player.UserIDString), time));
                        return;
                    }
                }
                HeldEntity heldEntity = player.GetHeldEntity();
                if (heldEntity == null)
                {
                    player.ChatMessage(CreateMessage("NotHolding"));
                    return;
                }
                if (heldEntity != null && player.GetActiveItem().condition != heldEntity.MaxHealth())
                {
                    float cond = player.GetActiveItem().maxCondition;
                    repairTimes[player.UserIDString] = DateTime.Now;
                    player.GetActiveItem().condition = cond;
                    player.ChatMessage(CreateMessage("Success"));
                    return;
                }
                else
                {
                    player.ChatMessage(CreateMessage("CantRepair")); return;
                }
            }​