Hi. How can I get online json feed from any server IP and port? (some program, or getting it from plugin...) I know that some servers offer that, but some doesn't
You want informations as number of players ? Easy way -> http://minecraft-api.com/api/query/#PO A bit longer but better : https://github.com/xPaw/PHP-Minecraft-Query
This one didn't really work for me(Server was online, but it said it's offline, slots didn't work), it can only tell you the currently online Players.
I think that using http://minecraft-api.com/api/query/#PO is the shortest (not best) way how get number of players, players list in array...
If you can query the number of players from the server directly, why use a third party tool that is both slower and less reliable?
Shorter code doesn't mean it is good. You are relying on a third party tool while you don't need to. This is highly discouraged, because once the third party tool misbehaves or gets down, it will directly destroy your plugin. Meanwhile, you can achieve 100% success rate if you query directly. And I haven't counted the longer time to server -> API -> target -> API -> server instead of server ->target -> server yet. Also, it seems that you should be using AsyncTask for this. BTW, wasn't it you who asked?
If you only want the player count, consider using motd instead of ut3 query. To get the motd you only have to send 1 packet, for query you need to send 2 packets. This makes getting the motd twice as fast as normal querying.