Can you help me out here? What should I do to make /restart command working? I have linux server and launching server via this start.sh:
screen -dmS "minecraft_server" sudo java -Xmx1024M -Xms1024M -jar spigot-1.14.1.jar
When I try to restart it just stops, but never starts.
I also tried this:
#!/bin/sh sleep 10 while true do sudo screen -dmS "minecraft_server" sudo java -Xmx1024M -Xms1024M -jar spigot-1.14.1.jar echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!" echo "Rebooting in:" for i in 5 4 3 2 1 do echo "$i..." sleep 1 done echo "Rebooting now!" done
It's very annoying because I can start server with these files, but when it crashes for some reason and trying to restart itself with /restart{{ nothing happening. I have to do it mannually.