how to create a restart .sh

Discussion in 'Spigot Help' started by JoKillerPT, May 27, 2018.

  1. i do that on start.sh
    Code (Text):
    while true
    do
        java -Xmx4G -Xms4G -jar spigot.jar
    done
    but when i do restart show a thing to select a program to open .sh
     
  2. Code (Text):
    #!/bin/sh
    while true
    do
    java -jar -Xms1024M -Xmx1024M -jar Spigot.jar
    sleep 5
    done
     
  3. dont work, when i do restart apear a thing to select a program to open files .sh
     
  4. This in start.sh:
    and when you type /restart in game it will run that file.

    Also, you may have to right click > open with, > CMD (or terminal on mac)