Added protocol # and map max distance

Also fixed the plugin detecting rounds >1 time (using round_end reason)
and fixed the server formatting the query.  Also added handling for
protocol #3 (which is the current version of the plugin).