From 32b3551108881a661b89c27602644ec0dc38c90a Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Mon, 20 Jun 2022 17:56:26 -0400 Subject: [PATCH] Add java selection code to panel handler --- app/classes/web/panel_handler.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 9dfbb17a..1bf5ba54 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -1355,11 +1355,18 @@ class PanelHandler(BaseHandler): auto_start = int(float(self.get_argument("auto_start", "0"))) crash_detection = int(float(self.get_argument("crash_detection", "0"))) logs_delete_after = int(float(self.get_argument("logs_delete_after", "0"))) + java_selection = self.get_argument("java_selection", None) # subpage = self.get_argument('subpage', None) server_id = self.check_server_id() if server_id is None: return + execution_list = execution_command.split(" ") + if java_selection: + execution_list[0] = java_selection + execution_command = "" + for item in execution_list: + execution_command += item + " " server_obj: Servers = self.controller.servers.get_server_obj(server_id) stale_executable = server_obj.executable