0

I have a website and would like to display a list of players online in my server. Most likely a php or javascript function would be ideal. Is this information public or do I need server mods to do this?

https://dinnerbone.com/minecraft/tools/status/ Has a version where if an IP:port is specified, the list of players is returned. I would like a version like this on my site, except for just my server.

Does anyone know of anything like this?

  • Do you mean like a list that you see when you click "Tab" in game? It's certainly possible to do, and I have seen it been done before on servers. – Chantola Nov 18 '14 at 3:16
  • @Chantola He's trying to integrate Dinnerbone's tool onto his Website, like a HTML; web version of the player list. | Also, I'm sure there's a plugin that does this. (Just don't know what it's called) – aytimothy Nov 18 '14 at 3:48
  • I'm not trying to use Dinnerbone's tool but just implement something similar to it where it would just show who is online in the server. – dukevin Nov 18 '14 at 5:16
3

To do this your server needs to have RCON enabled.
Basically that allows services to access data from your server. (Read more about RCON here)

An example implementation in PHP that you could use on your website would be this:
https://bitbucket.org/jyc/rcon/overview

Or you could use the same code Dinnerbone used:
https://github.com/Dinnerbone/mcstatus

| improve this answer | |
  • Would the fact that dinnerbone's server stats tool works on my server mean that RCON is enabled? – dukevin Nov 20 '14 at 4:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.