Just a little tool to rice a simple mc server in any linux machine. this code uses the official spigot build tools that you can find at https://www.spigotmc.org/wiki/buildtools, you need to have a compatible java jre installed
- set permissions
sudo chmod +x build.sh start.sh- create a new folder wherever you want
mkdir server-folder- link build.sh and start.sh to the server folder
sudo ln -s /ABS/PATH/TO/miss/build.sh /ABS/PATH/TO/server-folder/sudo ln -s /ABS/PATH/TO/miss/start.sh /ABS/PATH/TO/server-folder/- cd to server-folder and build the server's jar
sudo ./build.sh (ver)
replace ver with the version you want to compile, ex. (ver) = 1.16.1 you can see the avaliable versions at https://www.spigotmc.org/wiki/buildtools/#versions
- run server
./start.sh- open eula.txt and change false to true
- configure server.properties and run the server again as (4) step
This script runs the server into a screen, you can resume the screen session running the following command
screen -r server