feat(db): Force save on mission end
All checks were successful
Build / Build (push) Successful in 29s
All checks were successful
Build / Build (push) Successful in 29s
This commit introduces a mission event handler that forces a database save with backup when the mission ends. Key changes: * **`XEH_preInit_server.sqf`:** Added an "Ended" mission event handler that calls the `ArmaDragonflyClient` extension with the "savedb" command and logs an info message. This ensures that the database is saved when the mission ends, providing a backup in case of unexpected server shutdowns.
This commit is contained in:
parent
6857e12d26
commit
dc72f88327
@ -1 +1,6 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
addMissionEventHandler ["Ended", {
|
||||
"ArmaDragonflyClient" callExtension ["savedb", []];
|
||||
INFO("Mission ended - forced save with backup");
|
||||
}];
|
Loading…
x
Reference in New Issue
Block a user