Look here for the new startup script!
Starting scripts for a Spigot / Bukkit / ... Server or a BungeeCord Server.
- for Linux only!
- screen needs to be installed. (see Screen installation)
sudo apt install screen
sudo yum install screen
- Put the startBungee.sh file into your BungeeCord server folder. (Rename it if you want to)
- Open the file and change "SERVER" to your BungeeCord.jar file name if needed. Change "SCREENNAME" to the name you want.
- Change "HOME" to the directory, where the BungeeCord.jar file is.
- Set "HEAP_MAX" to the maximum amount of RAM you will give the server and "HEAP_MIN" to the minimum amount.
- Type
chmod 777 startBungee.sh
in the server console. - That's it, for more settings you can also change the other parameters.
- Put the startServer.sh file into your Minecraft server folder. (Rename it if you want to)
- Open the file and change "SERVER" to your spigot.jar file name if needed. Change "SCREENNAME" to the name you want.
- Change "HOME" to the directory, where the spigot.jar file is.
- Set "MAX_RAM" to the maximum amount of RAM you will give the server and "MIN_RAM" to the minimum amount.
- Type
chmod 777 startServer.sh
in the server console. - That's it, for more settings you can also change the other parameters.
- Go to the folder where the startup file is located.
cd /<directory>
-
You can select between this options: start, stop, restart, view
- start: Starts the server.
./startServer.sh start
or./startBungee.sh start
- stop: Stops the server.
./startServer.sh stop
or./startBungee.sh stop
- restart: Restarts the server.
./startServer.sh restart
or./startBungee.sh restart
- view: Opens the console.
./startServer.sh view
or./startBungee.sh view
- start: Starts the server.