поправлен yaml_create
This commit is contained in:
parent
f8e6f7efb5
commit
47f0ea7de3
9
hlna.py
9
hlna.py
@ -239,14 +239,13 @@ def yaml_create(cluster_server, map_s, name_server, port_server, query_port, pas
|
|||||||
'MaxPlayers' : max_players,
|
'MaxPlayers' : max_players,
|
||||||
'ModsId' : mods_id,
|
'ModsId' : mods_id,
|
||||||
'Listen' : listen_server,
|
'Listen' : listen_server,
|
||||||
'ServerPath' : dir_server
|
'ServerPath' : dir_server,
|
||||||
|
'clusterid' : cluster_id,
|
||||||
|
'clusterdir' : cluster_dir_override
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if cluster_id != None:
|
|
||||||
settings_hlna[0]['clusterid'] = cluster_id
|
|
||||||
settings_hlna[0]['clusterdir'] = cluster_dir_override
|
|
||||||
with open(config_hlna + f"{name_server}", 'w') as yamlfile:
|
with open(config_hlna + f"{name_server}", 'w') as yamlfile:
|
||||||
data = yaml.dump(settings_hlna, yamlfile)
|
yaml.dump(settings_hlna, yamlfile)
|
||||||
print(colorama.Fore.GREEN + "Конфиг создан" + colorama.Style.RESET_ALL)
|
print(colorama.Fore.GREEN + "Конфиг создан" + colorama.Style.RESET_ALL)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user