How to add an start.sh script to a server?
This might be a really basic question but I havent found an answer to it online, so I will be asking here.
When I type /reset with the MChallenge Plugin theres a message in cmd which tells me it tries to restart the server using "/start.sh" .
I dont have a .sh file in my server folder so it doesnt work and I have to restart manually.

9 Replies
/reset attempts to restart the server
This works by spigot trying to execute the start.sh file
You can change which file to be used in some configuration
I think it was spigot.yml or some
Correct ^^
And in this start.sh (or what ever you set) you put the command to start the server
On windows it will be a .bat file

I actually cant find any spigot config file, can you tell me where it should be?
I'm using purpur server on version 1.21.3
(the start.sh file is an unsuccesful attempt of fixing the problem btw)
You have file extensions disabled, therefore your files look different and you can not easily create new files. On the top bar, go to Ansicht and than Dateierweiterungen Anzeigen (or similar)
Than go into the spigot.yml and enter start.bat instead start.sh
(.sh is a linux file type)
idk where i should change the start.sh to start.bat

should i just paste "start.bat" at the end?
You should find some point named "restart-script: ./start.sh".
See this post for furthor details
https://www.spigotmc.org/threads/spigot-restart-script-help.158611/
ah i found it now it works