Closed GreepTheSheep closed 2 years ago
Do you really need this to be done through the Meta API? Why can't you just re-initialize everything yourself?
Yeah that could be possible.
How much more work would it be to do that for you? Just so I can judge the need for a feature like this. What kind of a setting is it?
Selecting between tm.mania.exchange
and sm.mania.exchange
on ManiaExchange plugin on MP4. But I managed to reload when its settings changes, so that's good now
Unloading a plugin via scripts is already pretty unsafe, because the resulting Plugin@
can no longer be used. Having a Reload()
function works similarly, and thus would be kind of confusing if implemented:
plugin.Reload();
print("Reloaded " + plugin.Name); // Crash, because plugin is no longer valid!
I'll close this for now.
I have a setting that requires plugin reloading after updating. But I'm looking for a way to make my plugin reloading itself after changing its settings.