How to automatically shut down a minecraft bungeecord server
I have a minecraft 1.17.1 spigot bungeecord server that consists of the bungeecord server itself and seven regular servers. Currently, I have a start.sh file in the main directory that starts each server in a different screen window:
//For each server
screen server1 sudo java -Xmx4G -Xms1G spigot-1.17.1.jar
However, in order to shut it down, I have to manually open each server console and type the stop command. Ending each screen, like the following:
screen -r server1 quit
is not an option for me to do, as it potentially leads to loss of server information. Is there either a better way of shutting it down, maybe something that enacts the stop command on each server at the same time?
Pictures about "How to automatically shut down a minecraft bungeecord server"
How do I shutdown my Minecraft server?
The /stop command is a server command that stops a Minecraft server and then saves all of the server data such as players, worlds, chunks for the Overworld, chunks for the Nether and chunks for the End.What does BungeeCord do Minecraft?
BungeeCord is a piece of server proxy software written by md_5 and the SpigotMC team that allows server owners to link Minecraft servers together so that players can jump between servers without having to disconnect and re-connect. BungeeCord is typically used by server networks that offer many game modes.Does BungeeCord work with Forge servers?
However, SpongeForge servers that require modded clients to join will not work with the standard BungeeCord software.Is BungeeCord a spigot?
BungeeCord cannot run Spigot or Craftbukkit plugins Although it is developed and maintained by the Spigot team, BungeeCord is not Minecraft software and does not share any of the Spigot or Craftbukkit code. This means Spigot plugins are not compatible with BungeeCord.How to make a BUNGEECORD Server - Minecraft Tutorials
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Kaique Rocha, luis gomes, Pixabay, Kevin Ku