Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Help' started by zDrop, Jul 11, 2018.
how i can do a start.sh script :C?
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.
yum install screen -y
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.
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:
chmod +x start.sh
And to run your start.sh file you simply type: