This is a .bat file for constant run that loops the running of the server. Or in other words restarts the server when it stops.
How to use:
Copy the code above and put it in to a .bat file called run.
Note: The nukkit jar file must be called nukkit.jar or this will not run.
Run at Windows startup
1) Make a shortcut of the bat and place it on desktop
2) Hold down the Windows key, and type R
3) Type: shell:startup
4) Click Ok
5) Drag the shortcut to the Windows Startup Folder
Should look like this
C:\Users\augesrob\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Code:
color 0E
title STARTING NUKKIT
@echo off
:start
java -Xmx1024M -jar nukkit.jar -o true
title RESTARTING NUKKIT
goto start
Copy the code above and put it in to a .bat file called run.
Note: The nukkit jar file must be called nukkit.jar or this will not run.
Run at Windows startup
1) Make a shortcut of the bat and place it on desktop
2) Hold down the Windows key, and type R
3) Type: shell:startup
4) Click Ok
5) Drag the shortcut to the Windows Startup Folder
Should look like this
C:\Users\augesrob\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup