Toxic_Oliver Posted August 13, 2023 Posted August 13, 2023 Hello guys, im trying to find a script to restart my minecraft forge server after a crash and i already tried this but it doesnt work, if the server tries to restart it says Error: Unable to access jarfile server-1.18.2.jar Here is the script i use : @echo OFF :loop java -server -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -Xms4G -Xmx4G -jar server-1.18.2.jar nogui echo Press control+C to exit the server! timeout 10 echo (%time%) Restarting! goto loop Quote
Paint_Ninja Posted August 13, 2023 Posted August 13, 2023 You need to use the supplied run.bat file that the "Install server" option in the Forge installer gives you. You cannot run the Forge server jar directly in 1.17+ for reasons explained in the FAQ Quote Official Forge Discord server | Support FAQ for players
Ente_3 Posted June 16 Posted June 16 You could try this script: https://inconnu-plugins.de/tutorial/server-auto-restart Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.