Skip to content

Commit

Permalink
Update speedrun.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
simylein authored Oct 18, 2020
1 parent c7f8624 commit 00aba55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions speedrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,54 +102,63 @@ while [ ${counter} -lt 12000 ]; do # while under 3 hours and 20 minutes do loop
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [[ ! -z $(grep "$death1" "$screenlog") ]]; then # if a player dies output time and reset server
echo "Challange stopped at ${hours}:${minutes}:${seconds}" # command line time output
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [[ ! -z $(grep "$death2" "$screenlog") ]]; then # if a player dies output time and reset server
echo "Challange stopped at ${hours}:${minutes}:${seconds}" # command line time output
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [[ ! -z $(grep "$death3" "$screenlog") ]]; then # if a player dies output time and reset server
echo "Challange stopped at ${hours}:${minutes}:${seconds}" # command line time output
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [[ ! -z $(grep "$death4" "$screenlog") ]]; then # if a player dies output time and reset server
echo "Challange stopped at ${hours}:${minutes}:${seconds}" # command line time output
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [[ ! -z $(grep "$death5" "$screenlog") ]]; then # if a player dies output time and reset server
echo "Challange stopped at ${hours}:${minutes}:${seconds}" # command line time output
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [[ ! -z $(grep "$death6" "$screenlog") ]]; then # if a player dies output time and reset server
echo "Challange stopped at ${hours}:${minutes}:${seconds}" # command line time output
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [[ ! -z $(grep "$death7" "$screenlog") ]]; then # if a player dies output time and reset server
echo "Challange stopped at ${hours}:${minutes}:${seconds}" # command line time output
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [[ ! -z $(grep "$death8" "$screenlog") ]]; then # if a player dies output time and reset server
echo "Challange stopped at ${hours}:${minutes}:${seconds}" # command line time output
screen -Rd ${servername} -X stuff "say Challange stopped at ${hours}:${minutes}:${seconds}$(printf '\r')" # ingame time output
screen -Rd ${servername} -X stuff "gamemode spectator @a$(printf '\r')"
./reset.sh # execution of the reset script
break
fi
if [ $((counter%240)) -eq 0 ]; then # output time every 4 minutes
echo "Time elapsed: ${hours}:${minutes}:${seconds}" # command line time output
Expand Down

0 comments on commit 00aba55

Please sign in to comment.