diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index b9c29136..a06fc02a 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -634,22 +634,14 @@ class PanelHandler(BaseHandler): return page_data["java_versions"] = Helpers.find_java_installs() server_obj: Servers = self.controller.servers.get_server_obj(server_id) - current_java = shlex.split(server_obj.execution_command)[0] page_java = [] page_data["java_versions"].append("java") - page_data["current_java"] = current_java for version in page_data["java_versions"]: - temp_version = version + "/bin/java" if os.name == "nt": - if version == "java" and current_java != version: - page_java.append(version) - else: - if temp_version != current_java and version != "java": - page_java.append(version) + page_java.append(version) else: if len(version) > 0: - if version != current_java: - page_java.append(version) + page_java.append(version) page_data["java_versions"] = page_java @@ -1413,12 +1405,8 @@ class PanelHandler(BaseHandler): self.get_remote_ip(), ) if java_selection != "java": - if ( - self.helper.is_os_windows() - and not "/bin/java" in java_selection - ): - if not "/bin/java" in java_selection: - execution_list[0] = '"' + java_selection + '/bin/java"' + if self.helper.is_os_windows(): + execution_list[0] = '"' + java_selection + '/bin/java"' else: execution_list[0] = '"' + java_selection + '"' else: diff --git a/app/frontend/templates/panel/server_config.html b/app/frontend/templates/panel/server_config.html index 3ebbfaec..f8851058 100644 --- a/app/frontend/templates/panel/server_config.html +++ b/app/frontend/templates/panel/server_config.html @@ -81,21 +81,15 @@ {% end %} {% if data['server_stats']['server_type'] == "minecraft-java" %}