So you want to get a server's player count? You can use MCAPI, which can be used to get lots of info from a server (query must be enabled), but in your case you just want the player count: PHP: $ip = // the ip of the server$port = // the port of the server$query_result = json_decode(file_get_contents("https://use.gameapis.net/mcpe/query/players/$ip:$port"), true);$online_players = $query_result["players"]["online"]; // online players$max_players = $query_result["players"]["max"]; // max players
This is the request section, not the development section. The poster really doesn't need a code snippet. @AndreySK please elaborate more, what exactly do you want? Have you already searched for something that fits your needs?
I want a plugin who query all servers slots in one server.Like linkslots,network query etc.LinkSlots is not working now,networkquery is saying 3947625/1 players =)))))