Does anyone happen to know of a good example of pinging an MCPE server for its status (playercount, whether it responds at all, etc.) from within the context of a PocketMine server? I have found multiple examples for websites, and I am looking specifically for something that works from a PocketMine server. Thanks a ton!
I don't think using an API above something you can do directly is a good idea. That basically means that there is an unnecessary third-party tool that may be tracking your activity, and there is also more time required for query due to an extra HTTP layer.
Thanks. By using "UT3 Query" as a search term I was finally able to find what I was looking for. Yeah, I was looking for a socket-level piece of code to efficiently check the status of other servers from a PocketMine server.
I think this might be the one you're looking for: https://github.com/xPaw/PHP-Minecraft-Query Why not import a library? That wouldn't take as much time(your suggestion would require async).
Actually, UT3 queries should use async too. A malicious server can suspend the connection for a long time, resulting in the server's lag.