mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Record all players as leaving on server exit
In the case of shutdown the Factorio server will not notify the currently online players as leaving the game. Notify the master server that all remaining online players quit the game in this case.
This commit is contained in:
1 parent
ac62f66aa1
commit
deb6842a4d
2 files changed
+7
-2
No files matched your search
@@ -483,6 +483,9 @@ class Instance extends libLink.Link {
|
||||
pluginInstance.onExit();
|
||||
}
|
||||
|
||||
for (let player of left) {
|
||||
this._recordPlayerLeave(player, "server_quit");
|
||||
}
|
||||
this._saveStats().catch(err => this.logger.error(`Error saving stats:\n${err.stack}`));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user