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.
No description
9 Replies
kxmpxtxnt
kxmpxtxnt5mo ago
/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
Miraculixx
Miraculixx5mo ago
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
Faluen
FaluenOP5mo ago
No description
Faluen
FaluenOP5mo ago
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)
Miraculixx
Miraculixx5mo ago
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)
Faluen
FaluenOP5mo ago
idk where i should change the start.sh to start.bat
No description
Faluen
FaluenOP5mo ago
should i just paste "start.bat" at the end?
Miraculixx
Miraculixx5mo ago
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/
Faluen
FaluenOP5mo ago
ah i found it now it works

Did you find this page helpful?