From 1a0d34cf0018355a438be8938a4b791697e07fbd Mon Sep 17 00:00:00 2001 From: xpamych Date: Tue, 16 May 2023 00:53:29 +0300 Subject: [PATCH] 1 --- hlna.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hlna.py b/hlna.py index 57c2300..9de7bf3 100755 --- a/hlna.py +++ b/hlna.py @@ -690,8 +690,6 @@ def start_stop(action, g, m, list_config=list_config): if stop or restart: y = os.system( f"~/git/hln-a/hlna.py rcon SaveWorld -m {i}") if action == "restart" or action == "stop" else "" - if y == 0: - print_line(f"Мир {i} сохранён") # Перенеси в rcon x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service") if x == 0: @@ -764,7 +762,7 @@ def rcon(m, c): passwd = dict_adminpwd[port] with Client('127.0.0.1', port, passwd=str(passwd)) as client: response = client.run(c) - print(f"Rcon выполнен {response} {dict_mapname[port]}") + print_line(f"Rcon выполнен {response} {dict_mapname[port]}") else: pass except: