First of all you need to have the Spigot build that you are going to want to in the directory you are going to want to use. Next go to that directory and make a text file using whatever editor you want. For windows I suggest Notepad++ and for ssh I suggest using Vim. In this text file you are going to want to make the first line say: Code: #!/bin/sh This lets everything know that it is an executable file that runs in Unix Shell Script. On the next line add Code: while true telling the system to keep running the loop while it is equal to true. On the next two lines put Code: do java -jar -Xms1024M -Xmx1024M -jar Spigot.jar You can change the -Xms and Xmx to whatever the ram you want. For this example I will use 1Gb. Next you can tell the system to sleep for a certain amount of time between the restart. I usually use 5 seconds as a restart, however you can use pretty much however much you want. The reason I have 5 is so I have enough time to stop the loop between the restarts if needed. Code: sleep 5 done Then set the code to done which will still return a true value which in turn will send it back through the loop of starting it back up. To cancel the loop simple do CTRL+C with the console open and when the server stops saving but before it starts back up! Finally save the file as an Unix Shell Script (.sh). In Windows to run the file you simple double click it. If you were to open it in ssh you would need to use bash. Which is just simply ./<scriptfilename>.sh Your finally file should look like this: Code: #!/bin/sh while true do java -jar -Xms1024M -Xmx1024M -jar Spigot.jar sleep 5 done I know this is pretty simple for a lot of people but I wanted to help the newer developers to use this instead of using /restart. /Restart especially in the newer updates of Spigots have caused a lot of problems. However I do not ever use a Mac to code so I'm not 100% sure on if terminal uses the same commands as ssh, at least to run Script files.