• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

Solved How to enable plugin A to send a command that triggers a "reload" of plugin B?

FrogFrog

Active member
Joined
Dec 1, 2023
Messages
27
Reactions
221
For plugin developers, how to enable plugin A to send a command that triggers a "reload" of plugin B without plugin B providing any additional interfaces?
 
Solution
Last VAM's update allows reloading plugin from code with (look at VAM's code through ILSpy or similar for more details)

C#:
MVRPlugin.Reload();
I realise you asked this a while back - I was looking for something else when I saw your Q was unanswered - the answer is no, you can't trigger a plugin to reload and can only do it manually.

But unless there's a problem with the way the script was written, you shouldn't need to. It's best to ask the plugin author and on the 2 occasions I've done so, they looked for bugs and published revised versions. Bit of a delayed response, hope it helps :)
 
Upvote 0
Last VAM's update allows reloading plugin from code with (look at VAM's code through ILSpy or similar for more details)

C#:
MVRPlugin.Reload();
 
Upvote 0
Solution
Last VAM's update allows reloading plugin from code with (look at VAM's code through ILSpy or similar for more details)

C#:
MVRPlugin.Reload();
Anyone using this yet? Stopgap measure while I wait for a plugin author to check his messages 😅
 
Upvote 0
Back
Top Bottom