From cb0487659224362d81dcca145fed3c6287f8f6e2 Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Sun, 14 Jul 2024 22:19:33 +0200 Subject: [PATCH] [+] Enable query on the right port on server creation --- generic_executor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/generic_executor.py b/generic_executor.py index ce4e002..e4db239 100644 --- a/generic_executor.py +++ b/generic_executor.py @@ -107,7 +107,10 @@ def server_create(user: UserRecord, name: str, version: str, framework: str = "p file_manager.create_folder(server_path) file_manager.copy_folder_contents(server_template_path, server_path) file_manager.copy_folder_contents("servers/shared", server_path) - file_manager.update_server_property(server_path + "/server.properties", "server-port", port) + prop_path: str = server_path + "/server.properties" + file_manager.update_server_property(prop_path, "server-port", port) + file_manager.update_server_property(prop_path, "query.port", port) + file_manager.update_server_property(prop_path, "enable-query", "true") return HTTPStatus.CREATED, f"Successfully created server '{name}'." except Exception as e: file_manager.log_error(type(e).__name__, str(e))