添加 - counter Save

This commit is contained in:
suwings 2018-04-18 20:48:30 +08:00
parent b440e36955
commit 8bba62de36

3
app.js
View File

@ -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);