Skip to content
Snippets Groups Projects
Commit a707cb34 authored by tmueller's avatar tmueller
Browse files

Update papermc.sh

parent ae277c58
No related branches found
No related tags found
No related merge requests found
Pipeline #2847 passed
......@@ -65,7 +65,6 @@ while true
screen -S mc -X select . ; SCRUN=$? #Queryabfrage um rauszufindne ob screensession noch aktiv ist. Return: bool
if [ ${SCRUN} = 0 ]
then # Server läuft, zeige letzte zeilen vom log an...
clear # Aber erstmal sauber machen ^^
echo "Latest Log:"
tail /papermc/logs/latest.log
echo "Befehle: (help für Hilfe)"
......@@ -104,15 +103,20 @@ while true
screen -r mc -p 0 -X stuff "lag^M"
;;
help)
echo "backup | restore | console | log | tps | ram | stop | restart"
sleep 5
echo "backup | restore | console | log | tps | ram | stop | restart | online"
sleep 10
;;
online)
screen -r mc -p 0 -X stuff "online^M"
;;
*)
echo "Befehl nicht erkannt"
;;
esac
clear # Aber erstmal sauber machen ^^
trap exec_stop TERM INT # SIGTERM ^C etc abfangen und funktion für gracefull shutdown aufrufen
else # Server läuft nicht, abgestürzt, gestoppt über minecraft /stop
clear # Aber erstmal sauber machen ^^
start_server
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment