@@ -12,7 +12,7 @@ title ZStart
1212
1313:: --CONSOLE--::
1414:: # Sets the console title.
15- SET TITLE = " UT:Re-Birth: Build+ "
15+ SET TITLE = " Minecraft: Server Instance "
1616:: # Sets the server location.
1717SET SERVER_PATH = " ./"
1818:: # Loop the server, no matter how the server closes, it will restart.
@@ -25,16 +25,18 @@ SET AUTO-EULA=true
2525:: # Values: WAIT, PAUSE, NONE
2626SET WAIT-MODE = WAIT
2727:: # Sets how long to WAIT.
28- SET WAIT-TIMER = 30
28+ SET WAIT-TIMER = 30
2929:: # Enables exiting after wait-mode.
3030SET EXIT = true
31+ :: # Enables debug-messages.
32+ SET DEBUG = false
3133
3234
3335:: --SERVER--::
3436:: # The name of your server's JAR file.
3537:: # Side note: if you're not using Paper (http://papermc.io) or one of it's forks,
3638:: # (https://purpur.pl3x.net) then you should really switch.
37- SET JAR_NAME = " purpur-1.16.5-1171 .jar"
39+ SET JAR_NAME = " server .jar"
3840:: # The location of your server's JAR.
3941SET JAR_PATH = " ./"
4042:: # Sets the CPU priority for the java program (Server).
@@ -43,7 +45,7 @@ SET PRIORITY=REALTIME
4345:: # Skips the need of eula.txt = true.
4446SET EULA-SKIP = false
4547:: # Removes warnings about outdated server builds.
46- SET ADVANCED-MODE = true
48+ SET ADVANCED-MODE = false
4749:: # Your server's JAR parameters.
4850:: # In order to see all the parameters, set below --help.
4951:: # (This won't let the server start, but will show all parameters available)
@@ -59,7 +61,7 @@ SET PARAMETERS="--nogui"
5961:: # You can use this to determine which java you want to use.
6062:: # Consider using java 11 or latest if possible, and changing to OpenJDK.
6163:: # (Change to OpenJDK here! https://adoptopenjdk.net/)
62- SET JAVA_BINARY = " C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\ java.exe "
64+ SET JAVA_BINARY = " java"
6365:: # Allocate the server's max&min heap-memory.
6466:: # If you want to allocate more than 4GB you will need Java 64 bits.
6567SET MAX-MEMORY = 4096
@@ -180,6 +182,11 @@ echo Loading startup parameters...
180182echo .
181183start /I /B /W " %TITLE% " /%PRIORITY% %CMD%
182184echo .
185+ if /I '%DEBUG% '== 'true' (
186+ echo start /I /B /W " %TITLE% " /%PRIORITY% CMD
187+ echo CMD: %CMD%
188+ echo EX: " java" -Xms4096M -Xms1024M -jar " ./server.jar" --nogui
189+ )
183190echo .
184191goto stop
185192
0 commit comments