新增 关服提示

This commit is contained in:
Suwings 2022-02-23 17:17:32 +08:00
parent 62b5b3c6a9
commit 5f3892283f

View File

@ -39,7 +39,10 @@ export default class GeneralStopCommand extends InstanceCommand {
} else {
await instance.exec(new SendCommand(stopCommand));
}
instance.println("INFO", `已执行预设的关闭命令:${stopCommand}\n如果无法关闭实例请前往实例设置更改关闭实例的正确命令比如 ^Cstopend 等`);
const cacheStartCount = instance.startCount;
// 若 10 分钟后实例还处于停止中状态,则恢复状态
setTimeout(() => {
if (instance.status() === Instance.STATUS_STOPPING && instance.startCount === cacheStartCount) {