diff --git a/mc_control.py b/mc_control.py index 2281e9c..4b89488 100644 --- a/mc_control.py +++ b/mc_control.py @@ -54,14 +54,8 @@ def create_server(isfirstrun=False): srv_pass = input('Password: ') print('OK\n') new_server = [{"name":srv_name,"address":srv_addr,"port":srv_port,"password":srv_pass}] - - if(isfirstrun): - json_obj = json.dumps(new_server,indent=4) - with open(servers_file, "w") as outfile: - outfile.write(json_obj) - else: - servers = servers + new_server - write_servers() + servers = servers + new_server + write_servers() initial_choice() def pop_server():