mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 13:52:27 +00:00
parent
8afb1651fd
commit
c8380daee5
1 changed files with 2 additions and 2 deletions
4
mcstatus
4
mcstatus
|
@ -9,9 +9,9 @@ if [[ ${cmd} == "ping" ]]; then
|
|||
IFS=':'
|
||||
read -a parts <<< "${addr}"
|
||||
if [[ ${#parts[*]} -gt 1 ]]; then
|
||||
echo mc-monitor status --host ${parts[0]} --port ${parts[1]}
|
||||
exec mc-monitor status --host ${parts[0]} --port ${parts[1]}
|
||||
else
|
||||
echo mc-monitor status --host ${parts[0]}
|
||||
exec mc-monitor status --host ${parts[0]}
|
||||
fi
|
||||
else
|
||||
echo "ERROR can only shim the 'ping' command"
|
||||
|
|
Loading…
Reference in a new issue