docker-minecraft-server/minecraft-server/mcadmin.jq

8 lines
250 B
Plaintext
Raw Normal View History

.[] |
select(.elements | length > 1) |
select(.elements[].elements[] | select(.class == "version" and .text == $version)) |
.elements[].elements[] |
select(.class|contains("server-jar")) |
.elements[] | select(.name="a") |
.href