How can I get the max and online players count of a specific server? (Not the server where the plugin is)
I tried the Php Query by xPaw. But when a player joins, he gets a timeout. (no error). But I can get the infos using that
PHP: $playeronline = file_get_contents('http://minecraft-api.com/api/query/playeronline.php?ip=VOTRE.IP&port=VOTRE.PORT'); echo $playeronline;
I added the count on my own website (without SSL). Now it works. But isn't there a method with less lag?
Use an async task or some other sort of threading solution so the main thread doesn't freeze while it waits for the response.