mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
[+] Updated modpack launch command
Now the get_sdk_version won't be called on modded servers, preventing a non base 10 error (because the modpack's version name won't be represented as a minecraft version, but as the modpack name itself.
This commit is contained in:
parent
362a079c69
commit
2e6e13a676
@ -36,10 +36,12 @@ class MinecraftServerManager:
|
|||||||
" -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true"
|
" -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true"
|
||||||
" -Dusing.aikars.flags=https://mcutils.com")
|
" -Dusing.aikars.flags=https://mcutils.com")
|
||||||
|
|
||||||
java: str = f"/usr/lib/jvm/java-{get_sdk_version(version)}-openjdk-amd64/bin/java"
|
command: str
|
||||||
|
|
||||||
command = f"{java} -Xmx{memory_size} {reg_flags} -jar {jar_file} --nogui"
|
if not modded:
|
||||||
if modded:
|
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"
|
||||||
|
else:
|
||||||
command = "./start.sh"
|
command = "./start.sh"
|
||||||
|
|
||||||
process = subprocess.Popen(shlex.split(command), cwd=server_directory, stdin=subprocess.PIPE)
|
process = subprocess.Popen(shlex.split(command), cwd=server_directory, stdin=subprocess.PIPE)
|
||||||
|
Loading…
Reference in New Issue
Block a user