diff --git a/start_server.py b/start_server.py index 40de8c6..1d3a070 100644 --- a/start_server.py +++ b/start_server.py @@ -32,7 +32,7 @@ def main(): JAVA_EXECUTABLE = os.path.join(args.java_path, 'java.exe') # Start the Java application in the background with a unique identifier - process = subprocess.Popen([JAVA_EXECUTABLE, '-Dapp.id=' + UNIQUE_IDENTIFIER, '-Xmx1024M', '-Xms1024M', '-jar', JAVA_APP_PATH, '--nogui', '--bonusChest'], + process = subprocess.Popen([f'{JAVA_EXECUTABLE}', '-Dapp.id=' + UNIQUE_IDENTIFIER, '-Xmx1024M', '-Xms1024M', '-jar', JAVA_APP_PATH, '--nogui', '--bonusChest'], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) # Save the PID of the Java application