maybe if you build another command listener on the remote server that execute things onto players on behalf of your plugin that's on the local server
if you want to get a player list (names only) or a player count you may look at my plugin https://github.com/robske110/SignServerStats (currently WIP on master, for a working version use https://github.com/robske110/SignServerStats/tree/0.9.1 )
I searched one post where any people do it but i dont understand the link in code can anyone explain me how to use ? http://forums.pocketmine.net/threads/get-players-of-another-server.9696/ i used code from thread Spoiler $lines = file_get_contents("http://minecraft-api.com/api/query/playeronline.php?ip=/*MyServerIp*/&port=19132"); $this->getLogger($lines); it say Code: Warning: file_get_contents(http://minecraft-api.com/api/query/playeronline.php?ip=127.0.0.1&port=19132): failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? in C:\Users\uzivatel\Desktop\Server\plugins\Core\src\Core\Core.php on line 74
Now i written extension=php_openssl.dll to php configuration file for enable it then load plugin without error but dont get number of players
That website is trying to remotely query the server. You entered the IP 127.0.0.1 (as seen in the first error), which is the loopback IP (local host). It means the website is trying to query players on a server run on its own machine, which there isn't one. That's why it won't give you the player count.
I tested your plugin i writen [SSS] on first line 2nd line ip 3line port and console say Code: 6 [20:24:14] [Asynchronous Worker #1 thread/CRITICAL]: TypeError: "Argument 1 passed to robske_110\SSS\SSSAsyncTask::doQuery() must be of the type integer, string given, called in C:\Users\uzivatel\Desktop\Server\plugins\SSS\src\robske_110\SSS\rootPlugin.php on line 354" (EXCEPTION) in "/SSS/src/robske_110/SSS/rootPlugin" at line 291 [20:24:14] [Server thread/CRITICAL]: Could not execute asynchronous task SSSAsyncTask: Task crashed
You used the direct master branch, which currently has WIP stuff on it (idk why i didn't do that on a branch). Please use https://github.com/robske110/SignServerStats/tree/0.9.1. (Or simply SignServerStats_v0.9.1.phar)
I tested it dont give anything on 1 line 2 line ip 3 line port 4line only give / .. I must confirm anything on server where i tried to connect?