by Howard Miller.
Unless the plugin is completely rewritten and stores its config in a different way then the settings are not lost. You only loose the settings by deleting the plugin through the admin interface - and even that doesn't delete global settings.
You can even upgrade core Moodle and then add the optional plugins later - all their data will still be there and will upgrade when you add the plugin back. It's almost idiot proof. Almost!