What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Force script reload

Maniacuz

Member
Joined
Mar 17, 2015
Messages
118
Reaction score
1
Hi, is there any method for force restart current plugin? Can't handle one problem in my plugin, simple script restarting shall work, but don't know how to do it :)
 
Last edited:
you cant inside a single plugin, since it need to stop itself before starting again (at which point it cant start itself). Chance are tho if you abstract your plugin you can do a "soft" restart, where you restart the logic of your plugin without actually restarting the plugin.

If thats not an option, then youd need a second plugin, that act as a watcher and restart your main plugin if its off. Once thats done you can simply have your main plugin stop itself and your watcher will restart it.
 
Back
Top