diff --git a/instance/get-waypoint.sh b/instance/get-waypoint.sh new file mode 100755 index 0000000..5a1d52f --- /dev/null +++ b/instance/get-waypoint.sh @@ -0,0 +1,4 @@ +#!/bin/bash +cd "$(dirname "$0")" +instance="$(basename "$(pwd)")" +find logs -type f -exec zcat -f -- '{}' + | grep xaero-waypoint | grep -ve '\[Server\]' | fzf | sed 's/^.*\(xaero-waypoint:.*\)/\1/g' | xargs -d'\n' -n1 mcserver command "$instance" say