The plugin doesn’t find my server when I use play.clashnia.com but finds it when I put in x.x.x.x
The play.clashnia.com thing is an SRV record that can’t normally get pinged with a ping command. I’m assuming that your plugin would need to lookup the SRV record first then query the server.