Send save list update after manual save

Trigger a save list update in the event an admin manually saves the game
with the /server-save command.
This commit is contained in:
Hornwitser committed 2022-03-25 23:15:07 +01:00
1 parent ce95f868fd
commit 946847c95d
3 files changed
+37 -2

No files matched your search

+6
View File
@@ -199,6 +199,12 @@ class Instance extends libLink.Link {
});
});
this.server.on("save-finished", () => {
this.sendSaveListUpdate().catch(err => {
this.logger.error(`Error handling save-finished in instance ${this.name}:\n${err.stack}`);
});
});
this.server.on("ipc-player_event", event => {
libLink.messages.playerEvent.send(this, {
instance_id: this.id,