From b23860449336525975e623a017111556074dfdb6 Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Sun, 15 Sep 2024 07:49:32 +0200 Subject: [PATCH 1/2] [-] Modified server launching command according to new server architecture migration --- server_mc_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_mc_manager.py b/server_mc_manager.py index 810433f..7f9b22e 100644 --- a/server_mc_manager.py +++ b/server_mc_manager.py @@ -35,7 +35,7 @@ class MinecraftServerManager: " -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true" " -Dusing.aikars.flags=https://mcutils.com") - java: str = f"/usr/lib/jvm/java-{get_sdk_version(version)}-openjdk/bin/java" + java: str = f"/usr/lib/jvm/java-{get_sdk_version(version)}-openjdk-amd64/bin/java" command = f"{java} -Xmx{memory_size} {reg_flags} -jar {jar_file} --nogui" process = subprocess.Popen(shlex.split(command), cwd=server_directory, stdin=subprocess.PIPE) From 4c33710071f5ce24d15f72398b22294fee6789c1 Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Sun, 15 Sep 2024 18:46:52 +0200 Subject: [PATCH 2/2] [+] Fixed deployed JVM associations --- server_mc_manager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server_mc_manager.py b/server_mc_manager.py index 7f9b22e..7138797 100644 --- a/server_mc_manager.py +++ b/server_mc_manager.py @@ -168,8 +168,9 @@ def version_range_checker(*ranges: tuple[str, str, str], default_sdk: str = "jav return check_version -get_sdk_version: Callable[[str], str] = version_range_checker(("1.0", "1.15.2", "11"), - ("1.16.1", "1.18.1", "17"), +get_sdk_version: Callable[[str], str] = version_range_checker(("1.0", "1.13.2", "8"), + ("1.14.1", "1.16.5", "11"), + ("1.17.1", "1.18.1", "17"), default_sdk="21") if __name__ == "__main__":