minecraft-server
minecraft-server copied to clipboard
Implement Multi-backend server support
Now for the big one!
A full revamp of the installer/bootstrap script, which in the future could lead to support for setting up more than one server...
- Moved installation-only files from
contrib/toinstaller/, to organize the folder hierarchy and reduce the clutter incontrib/ - Moved backend minecraft server from
server/toservers/backend/, to support multiserver setups - Future updates to installer could prompt users for the server names, and auto number the ports they will be using.
Also:
- The root
deploy/update.shnow loops through all the folders inservers/in addition toproxy/, calling theupdate.shin each of them. - Added
wgetto the bootstrap requirements because we use it to fetch the server files (velocity.jar AND paper.jar)
With this PR, to set up another server with name <SERVER_NAME>, just:
- change into the
deploydirectory asminecraft -
cp -r installer/default_config/server servers/<SERVER_NAME> - add another server entry to
proxy/plugins/vane-velocity/config.tomlandproxy/velocity.toml - configure your server
- make sure you chose and configured a different port for your server (
25502, for instance) - run
servers/<SERVER_NAME>/update.shto get server files - as
root,systemctl enable --now minecraft-server@<SERVER_NAME> - join and
/server <SERVER_NAME>You can start and stop any server with theminecraft-server@<SERVER_NAME>service!
However, server administrators now need to use sudo minecraft-attach server-backend instead of just sudo minecraft-attach server. This is to differentiate between the proxy (velocity) and a backend server (paper) named proxy.
As always, welcome to any edits or suggestions!