Add minecraft server ping function.