Simple Groovy app to query Nexuiz servers. I am playing with some ideas to have a simple notifier for when players join a server I'm interested in. I started with this code as my base, which I found when I was searching online for docs on the server protocol.
The Tortilla code is very nice but I just wanted the parts to query the server since I'm not really interested in a GUI tool. His code really is quite nice though.
Made some changes to publish to a "notifier" which currently only includes twitter or console. Default is to publish to console.
java -jar querynex-xxx.jar -h
usage: Possible options -w Watch server forever. Has priority over number of iterations (-i) -a Only show active players, not specs -b Also show bots in the player list -f Read a file of lines with ip:port -h This screen -i Number of times to check the servers -n use external notifier ("twitter" for twitter) -s Specify the server ip:port -t publish a test notification and exit Passing no arguments will query 127.0.0.1:26000 a single time. Example for file input:# format is nick:ip:port # Empty lines or lines starting with '#' are ignored. # funserver:213.141.136.246:26003 # foo:94.23.20.72:26000 mojo:198.58.96.171:26000