MinecraftServerControl / mscs

Powerful command-line control for UNIX and Linux powered Minecraft servers
https://minecraftservercontrol.github.io
BSD 2-Clause "Simplified" License
485 stars 62 forks source link

Non-issue, general inquiry #281

Closed TheRanker closed 3 years ago

TheRanker commented 3 years ago

I am wondering if there is a way I can edit the displayed message upon restart of a forge server it currently displays admin initiated server restart. I have auto restarts on and I'd like for it to display auto restart active . Restarting in ...... Also leads to next question, can the timer be changed?

Thanks so much for this freakin awesome service.

zanix commented 3 years ago

You will need to edit the msctl file directly in /usr/local/bin/

The restart function starts here https://github.com/MinecraftServerControl/mscs/blob/main/msctl#L2572 The 3 sendCommand lines and the sleep command are where you are looking for here: https://github.com/MinecraftServerControl/mscs/blob/main/msctl#L2604

TheRanker commented 3 years ago

You will need to edit the msctl file directly in /usr/local/bin/

The restart function starts here https://github.com/MinecraftServerControl/mscs/blob/main/msctl#L2572 The 3 sendCommand lines and the sleep command are where you are looking for here: https://github.com/MinecraftServerControl/mscs/blob/main/msctl#L2604

God bless ur Cotten socks haha

TheRanker commented 3 years ago

Info to update server-restart notifications - resolved