Fix script import path for RCON_CMDS_* (#3695)

This commit is contained in:
Geoff Bourne
2025-10-05 09:00:04 -05:00
committed by GitHub
parent 3eb8f85cd4
commit c6cf0857fc
6 changed files with 3 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
warning "mcstatus is deprecated; calling mc-monitor instead"
##### mcstatus shim for mc-monitor
# handles translating calls to
# mcstatus (host:port) (command)
# where the actual command is ignore, but is typically ping or status
addr="$1"
IFS=':'
read -a parts <<< "${addr}"
args=(--host ${parts[0]})
if [[ ${#parts[*]} -gt 1 ]]; then
args+=(--port ${parts[1]})
fi
exec mc-monitor ${args[@]}