private string convertCode(string text, string color)
{
switch (color.ToLower()) {
case "black":
text = "§0" + text;
break;
case "dark blue":
text = "§1" + text;
break;
case "dark green":
text = "§2" + text;
break;
case "dark cyan":
text = "§3" + text;
break;
case "dark red":
text = "§4" + text;
break;
case "purple":
text = "§5" + text;
break;
case "gold":
text = "§6" + text;
break;
case "gray":
text = "§7" + text;
break;
case "dark gray":
text = "§8" + text;
break;
case "blue":
text = "§9" + text;
break;
case "bright green":
text = "§a" + text;
break;
case "cyan":
text = "§b" + text;
break;
case "red":
text = "§c" + text;
break;
case "pink":
text = "§d" + text;
break;
case "yellow":
text = "§e" + text;
break;
case "white":
text = "§f" + text;
break;
}
return text;
}