Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 5f38922

Browse files
committed
新增 关服提示
1 parent 62b5b3c commit 5f38922

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/entity/commands/general/general _stop.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export default class GeneralStopCommand extends InstanceCommand {
3939
} else {
4040
await instance.exec(new SendCommand(stopCommand));
4141
}
42+
43+
instance.println("INFO", `已执行预设的关闭命令:${stopCommand}\n如果无法关闭实例请前往实例设置更改关闭实例的正确命令,比如 ^C,stop,end 等`);
4244
const cacheStartCount = instance.startCount;
45+
4346
// 若 10 分钟后实例还处于停止中状态,则恢复状态
4447
setTimeout(() => {
4548
if (instance.status() === Instance.STATUS_STOPPING && instance.startCount === cacheStartCount) {

0 commit comments

Comments
 (0)