start.sh

Discussion in 'Spigot Plugin Help' started by zDrop, Jul 11, 2018.

  1. how i can do a start.sh script :C?
     
    • Agree Agree x 3
    • Creative Creative x 1
  2. Well you have to execute this command first:
    This command will make sure you can run the command screen later on.
    This allows you to start minecraft then close your SSH client and it will still keep on running.
    Code (Text):

    yum install screen -y
    OR
    sudo apt-get install screen
     
    And then edit a file put this in it:
    The first number 1G means that the minimum for the server is 1GB.
    The second number 2GB means that the maximum ram for the server can be 2GB.
    Code (Text):

    screen -S Minecraft java -Xms1G -Xmx2G -jar Spigot.jar
     
    And then save the file as start.sh
    After that you need to make sure the start.sh file is executeable. You can do that by running this command:
    Code (Text):
    chmod +x start.sh
    And to run your start.sh file you simply type:
    Code (Text):

    ./start.sh
    OR
    sh start.sh
    OR
    bash start.sh
     
     
    #2 RamonRobben, Jul 11, 2018
    Last edited: Jul 11, 2018
    • Like Like x 7
    • Useful Useful x 2
    • Agree Agree x 1