rcon
This commit is contained in:
		
							
								
								
									
										4
									
								
								hlna.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								hlna.py
									
									
									
									
									
								
							| @@ -505,6 +505,8 @@ def start(g, m, b, name_server=list_config): | ||||
|                 data = read_yaml(i) | ||||
|                 x = os.system(f"systemctl --user start ark_{data['SessionName'].lower()}.service") | ||||
|                 print_line(x) | ||||
|                 if x == 0: | ||||
|                     print_line("Ok") | ||||
|         else: | ||||
|             print("Ни одной карты не установлено") | ||||
|  | ||||
| @@ -538,7 +540,7 @@ def stop(g, m, b, name_server=list_config): | ||||
|  | ||||
|             for i in names_serverstart: | ||||
|                 data = read_yaml(i) | ||||
|                 rcon(m, "SaveWorld") | ||||
|                 os.system(f"~/git/hln-a/hlna.py rcon -m {i} -c SaveWorld") | ||||
|                 x = os.system(f"systemctl --user stop ark_{data['SessionName'].lower()}.service") | ||||
|                 print_line(x) | ||||
|         else: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user