Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- Y_ARRAY=()
- for ((y=-5000; y<=5000; y++)); do
- if [ $(( y % 500 )) -eq 0 ] ; then
- Y_ARRAY+=("$y")
- fi
- done
- for (( idx=${#Y_ARRAY[@]}-1 ; idx>=0 ; idx-- )) ; do
- for i in ${Y_ARRAY[@]} ; do
- COORDS="${Y_ARRAY[idx]}, $i"
- if [[ $( cat ~/minecraft_mapping.txt | grep "$COORDS" | tail -n1 ) == "$COORDS" ]]; then
- echo -ne ".";
- else
- while [ $( uptime | awk {' print $10 '} | tr -d ",." | sed -e 's/^0*//' ) -gt 200 ]; do
- sleep 60s;
- echo "WAITING load is to high"
- done
- command="/tp liskl ${Y_ARRAY[idx]} 75 $i";
- echo "$command" >> /home/minecraft/worlds/apr-26-2014/console.in;
- echo "$COORDS" >> ~/minecraft_mapping.txt;
- echo "TP to $COORDS";
- sleep 60s;
- fi
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment