It would be useful to have a command for querying a minecraft server. Minecraft has a protocol which returns server name, version, players, latency and other useful things.
Making use of the mcstatus package, this should be relatively straightforward with some error messages for invalid server, and similar.