void SendHelpText(BasePlayer player)
{
var stringBuilder = new StringBuilder("AntiOfflineRaid by <color=#ce422b>Shady14u</color>\n");

if (_config.CooldownMinutes > 0)
{
stringBuilder.Append($" <color=#ffd479>First {_config.CooldownMinutes} minutes</color>: 100%\n");
stringBuilder.Append($" <color=#ffd479>Between {_config.CooldownMinutes} minutes and 1 hour</color>: {_config.InterimDamage * 100}%\n");
}
else
{
stringBuilder.Append($" <color=#ffd479>First hour</color>: {_config.InterimDamage * 100}%\n");
}

foreach (var key in _config.DamageScaleKeys)
{
var scale = Math.Round(Convert.ToDouble(_config.DamageScale[key.ToString()]) * 100, 0);
var hours = Math.Round(Convert.ToDouble(key), 1);
if (hours >= 24)
{
var days = Math.Round(hours / 24, 1);
stringBuilder.Append($" <color=#ffd479>After {days} day(s)</color>: {scale}%\n");
}
else
{
stringBuilder.Append($" <color=#ffd479>After {hours} hour(s)</color>: {scale}%\n");
}
}

player.ChatMessage(stringBuilder.ToString());
}

 

This new code makes it so that it doesn't appear like this in game when you type /help (anti offline raid plugin for example)

 

AntiOfflineRiad by (Shady14u) (its not actually in brackets but this IS colored)

<color="#ffd479">First 10 minutes: 100%

<color="#ffd479">Between 10 minutes and 1 hout: 0%

<color="#ffd479">After 1 hour(s): 20%

<color="#ffd479">After 3 hour(s): 35%

<color="#ffd479">After 6 hour(s): 50%

<color="#ffd479">After 12 hour(s): 80%

<color="#ffd479">After 2 days(s): 100%

 

DISCLAIMER: I KNOW NOTHING ABOUT CODING I USED CHATGPT TO HELP ME.

 

Just adding this so the developer might be able to fix it :D