Open Rubicj opened 2 months ago
Thanks for the question, im afriad at the moment there is no way to do this without changing the lazymc.motd.*
labels and restarting the lazymc container. I have an open issue for hotswapping server configurations which may solve this in the future: #75, you would just have to have a script which changes the label on the mc container but at the moment this will not work.
I could add a feature which checks the server properties for the MOTD configuration then update the that way on the fly. However non of this is supported yet
Ill update this issue as an enhancement feature and keep open for now
for the time being also try using something like: https://github.com/itzg/docker-bungeecord/ to change the MOTD before proxying it to the lazymc server
I'd like to set something up to automatically rotate MOTDs. I can change the MOTD of the actual MC server by writing to the server.properties file, but when the server is sleeping/started that's not shown, and instead it shows the contents of the labels, such as
lazymc.motd.sleeping
.Is there a good way to update those MOTDs periodically? I plan to have a cronjob running every period (ideally seconds, otherwise minutes) that selects a random message, then applies it to the server.
In case it's relevant, my abbriviated compose file:
If my minecraft container is stopped, and I recreate the image with different
lazymc.motd.sleeping
labels, the new labels aren't pulled in unless I restart thelazymc
container. That's not a complete dealbreaker, as lazymc does restart very quickly, but if if the container takes 5s to restart and I do this once a minute, that means there's a one-in-twelve chance that when someone tries to connect, lazymc will be restarting. Additionally, when a player tries to join, lazymc then can't find the new container to start.