Fabric mod I made for Minehut to run any server jar file you would need. I was bored. Don't blame me man D: (Some credit goes to https://github.com/ayunami2000/)
Here are some of the features:
- Run any jar file you want
1. Build the jar.
./gradlew build
2. Start the server.
3. Go to rerouted/autojava.txt and enter the java startup arguments. Ex:
-Xmx1024M -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -DIReallyKnowWhatIAmDoingISwear -Djline.terminal=jline.UnsupportedTerminal -Dlog4j2.formatMsgNoLookups=true -jar yourJarName.jar
4. Put your desired jar file in rerouted/gaming.
5. Type this 2-4 times in the console until the server stops.
plsstop
6. Start the server and it will run the file in rerouted/gaming and make that it's working directory.
If you want to support me contact me here