Add client holding feature

Don't disconnect client when server starts, hold them for a while, and
relay when the server is ready. This makes the start-and-connect process
much more transparent.
This commit is contained in:
timvisee
2021-11-10 20:50:49 +01:00
parent d10cf48de1
commit cbe35e5585
4 changed files with 188 additions and 43 deletions

View File

@@ -43,6 +43,10 @@ command = "java -Xmx1G -Xms1G -jar server.jar --nogui"
# Minimum time in seconds to stay online when server is started.
#minimum_online_time = 60
# Hold client for number of seconds on connect while server starts (instead of kicking immediately).
# 0 to disable, keep below Minecraft timeout of 30 seconds.
#hold_client_for = 25
[messages]
# MOTDs, shown in server browser.
#motd_sleeping = "☠ Server is sleeping\n§2☻ Join to start it up"