From 7e7063cc1488b43ede49d9e60fcdb7774e8534e6 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 4 Aug 2024 22:41:42 +0200 Subject: [PATCH] Add 2 neue Server --- playground.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/playground.py b/playground.py index 42335b3..ffb7abd 100644 --- a/playground.py +++ b/playground.py @@ -102,10 +102,22 @@ java_servers = [ 'wait_time': 30 }, { - 'server_name': 'GT New Horizons 2.6.0', + 'server_name': 'The 1.12.2 Pack (SanderPack)', + 'directory': 'C:/Users/4lexK/Desktop/GameServers/Minecraft/1-12-2-Pack/', + 'command': ['C:/Program Files/OpenLogic/jdk-8.0.412.08-hotspot/bin/java.exe', '-Xmx16G', '-XX:+UseG1GC','-Xms4G', '-Dsun.rmi.dgc.server.gcInterval=2147483646', '-XX:+UnlockExperimentalVMOptions', '-XX:G1NewSizePercent=20', '-XX:G1ReservePercent=20', '-XX:MaxGCPauseMillis=50', '-XX:G1HeapRegionSize=32M', '-Dfml.queryResult=confirm', '-Duser.language=en', '-jar', 'forge-1.12.2-14.23.5.2860.jar', '--nogui', '--bonusChest'], + 'wait_time': 300 + }, + { + 'server_name': 'GT New Horizons 2.6.0 (SanderHorizons)', 'directory': 'C:/Users/4lexK/Desktop/GameServers/Minecraft/gt_new_horizons_2.6.0/', 'command': ['C:/Program Files/OpenLogic/jdk-8.0.412.08-hotspot/bin/java.exe', '-Xmx12G', '-Xms4G', '-XX:+UseStringDeduplication', '-XX:+UseCompressedOops', '-XX:+UseCodeCacheFlushing', '-Dfml.readTimeout=180', '-jar', 'forge-1.7.10-10.13.4.1614-1.7.10-universal.jar', '--nogui', '--bonusChest'], 'wait_time': 300 + }, + { + 'server_name': 'RLCraft 2.9.3 (SanderHardcore)', + 'directory': 'C:/Users/4lexK/Desktop/GameServers/Minecraft/rlcraft/', + 'command': ['C:/Program Files/OpenLogic/jdk-8.0.412.08-hotspot/bin/java.exe', '-Xmx16G', '-Xms4G', '-jar', 'forge-1.12.2-14.23.5.2860.jar', '--nogui', '--bonusChest'], + 'wait_time': 300 } ] @@ -144,7 +156,7 @@ def start_servers(): stderr=log, creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == 'nt' else 0 ) - time.sleep(wait_time) + #time.sleep(wait_time) with open(pid_file, 'w') as file: file.write(str(process.pid)) print(f"Server in {server['directory']} with PID {process.pid} started successfully.")