Apply plugin inside a plugin

The user might not be directly controlling the version of the plugin, for instance it might be that enabling some features leads to some different choice of version. But I have to admit my case is unorthodox.

I see. If this is more like an A or B situation than a 1 out of 100 situation, it might maybe be feasible to release two variants of your plugin instead of having some feature switch.