Class cWorld; Function ScheduleTask; Only one Function Callback
#11
(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:
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.
The second Option sounds like good.
Have you an example code for this?
How can i kill my scheduled tasks on a Server reload?[/quote]
Reply
Thanks given by:
#12
This has to be done in mc server code, not possible from a lua plugin.
Reply
Thanks given by:
#13
(12-26-2014, 08:40 PM)Seadragon91 Wrote: This has to be done in mc server code, not possible from a lua plugin.
You know when this will be implemented?
Reply
Thanks given by:




Users browsing this thread: 5 Guest(s)