BeamMP-Server icon indicating copy to clipboard operation
BeamMP-Server copied to clipboard

onShudownReceived ()

Open emlodnaor opened this issue 4 months ago • 4 comments

Is your feature request related to a problem? Please describe. I need to store information before the server shuts down, and I need to do it before players are kicked, so that information I need to store is still available

Describe the solution you'd like once the server receive a shutdown instruction from anywhere, as it's first step it should trigger onShudownReceived(), time needs to be given to allow information to be stored to disk etc, maybe wait for all onShudownReceived functions to return, or somehow allow them to set a delay for the rest of the shutdown?

Describe alternatives you've considered I could use a timer to store the information every now and then, but it feels dirty, and would never be perfect a onPreKick might also do the trick

emlodnaor avatar Sep 26 '24 14:09 emlodnaor