12-26-2014, 08:12 PM
(12-24-2014, 03:08 AM)worktycho Wrote: It's a known bug in the server and requires changes to the lua/scheduler interface. The relevant issue is: https://github.com/mc-server/MCServer/issues/1556
Quote:We have three options:The second Option sounds like good.
1.Keep the plugin loaded in a partially unloaded state until all scheduled tasks are done.
- Increases reload time
2.Kill all scheduled tasks on unload.
- Can leave plugins in an inconsistent state.
3.Transfer scheduled task to new instance.
- Function may not exist in new instance.
- Doesn't fix unload.
Have you an example code for this?
How can i kill my scheduled tasks on a Server reload?[/quote]