1
This commit is contained in:
parent
5ded3261ee
commit
0f353802de
6
hlna.py
6
hlna.py
@ -691,7 +691,7 @@ def start_stop(action, g, m, list_config=list_config):
|
||||
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} сохранён")
|
||||
print_line(f"Мир {i} сохранён") # Перенеси в rcon
|
||||
x = os.system(f"systemctl --user {action} ark_{data['SessionName'].lower()}.service")
|
||||
|
||||
if x == 0:
|
||||
@ -761,12 +761,10 @@ def rcon(m, c):
|
||||
rcon_ports.append(rcon_p)
|
||||
|
||||
for port in rcon_ports:
|
||||
|
||||
passwd = dict_adminpwd[port]
|
||||
with Client('127.0.0.1', port, passwd=str(passwd)) as client:
|
||||
response = client.run(c)
|
||||
print(response)
|
||||
print(f"Rcon выполнен для {port}")
|
||||
print(f"Rcon выполнен {response} {dict_mapname[port]}")
|
||||
else:
|
||||
pass
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user