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.shin 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.shin 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 startor./startBungee.sh start - stop: Stops the server.
./startServer.sh stopor./startBungee.sh stop - restart: Restarts the server.
./startServer.sh restartor./startBungee.sh restart - view: Opens the console.
./startServer.sh viewor./startBungee.sh view
- start: Starts the server.