getserverinfo.getserverinfo - Permission to access command /getserverinfo
getserverinfo.getplayersample - Permission to access command /getplayersample
/getserverinfo <IP> [port] - tells you motd, number of online players, max players, version protocol and version name
/getplayersample <IP> [port] - tells you sample of online players
Plugin was made in java 8 with spigot 1.8.8 and tested on spigot 1.8.8.
If no port specified, it uses 25565 (default) port.
Source code: http://pastebin.com/AmBYj5pY
This plugin should work if you drag&drop it in plugins folder and reload or restart server.
If you find any issue let me know...