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" %}
- +
diff --git a/app/translations/en_EN.json b/app/translations/en_EN.json index 6d53e73a..dae806f3 100644 --- a/app/translations/en_EN.json +++ b/app/translations/en_EN.json @@ -302,7 +302,7 @@ "serverExecutable": "Server Executable", "serverExecutableDesc": "The server's executable file", "javaVersion": "Override current Java Version", - "javaVersionDesc": "If we've been able to find local java installs. (Windows 'Oracle' only)", + "javaVersionDesc": "If you're going to override java. Make sure your current java path in 'execution command' is wrapped in quotes (default 'java' variable excluded)", "javaNoChange": "Do Not Override", "serverExecutionCommand": "Server Execution Command", "serverExecutionCommandDesc": "What will be launched in a hidden terminal", @@ -534,4 +534,4 @@ "userSettings": "User Settings", "uses": "Number of uses allowed (-1==No Limit)" } -} \ No newline at end of file +}