So when doing this i can import a Plugin and run an event on it:
PluginHelper::importPlugin('mygroup', 'myplugin'); Factory::getApplication()->triggerEvent('onMyEvent', ['some' => 'stuff']);
If i do this in a loop and trigger different events the prior loaded plugins also get triggered.
I only want the plugin method loaded just now to get triggered, even if prior loaded have the same eventname.
This is all a bit more complex, but here I am minimizing the question, so please don't suggest a different architecture of simple functions and similar.
So is there a way to unload or unboot a once loaded plugin?
I am using Joomla 4.3.4