private static string FormatMessage(string msg, PluginManager.MessageType Type)
 {
     string formatted;
     try
     {
         formatted = string.Format("{0}({1}) {2}", "[AutoLineColor]", Type.ToString(), msg);
     }
     catch (Exception e)
     {
         DebugOutputPanel.AddMessage(PluginManager.MessageType.Error, e.ToString());
         formatted = msg;
     }
     return formatted;
 }