MinecraftServerControl / mscs

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

Adding hook scritps to start, stop and force-stop. The scripts are ex… #347

Open KingBBQ opened 1 week ago

KingBBQ commented 1 week ago

…ecuted, if they exists: hooks/post-start.sh - hooks/post-stop.sh

how did I get the idea? I asked ChatGPT if there is a way to have scripts automatically executed after a stop or start in MSCS, and it halucinated... as it didnt exist (yet), i added it :)

sandain commented 1 week ago

Interesting idea. Would it make sense to also add in pre-start and pre-stop hooks as well?