mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-18 15:04:04 +08:00
添加 - counter Save
This commit is contained in:
parent
b440e36955
commit
8bba62de36
3
app.js
3
app.js
@ -268,9 +268,12 @@ process.on('SIGINT', function () {
|
||||
_endFlag = true;
|
||||
MCSERVER.infoLog('PROCESS', '程序正在结束,请稍等...'.red);
|
||||
|
||||
//保存
|
||||
counter.save();
|
||||
ServerModel.ServerManager().saveAllMinecraftServer();
|
||||
UserModel.userCenter().saveAllUser();
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
MCSERVER.infoLog('PROCESS', 'EXIT...'.red);
|
||||
process.exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user