Getting Minecraft info from server using PHP.

Ask about a PHP problem here.
Post Reply
User avatar
killfrog47
Posts: 106
Joined: Tue Mar 12, 2013 2:52 am
Location: Tempe, AZ
Contact:

Getting Minecraft info from server using PHP.

Post by killfrog47 »

Hello all so as of lately I have been playing with PHP and I love it. I have how ever been running in to some trouble and I cant seem to find a good way of doing it. I want to make a way of listing players that are on line and pretty much have every thing about the player i can. That inculudes the players avatar. What would be a good plugin to get all this info? Here is an example so far of what i have made: http://tomascordero.com/example/playerlist.php this is just my zone to play in and try new things. Any ideas?

EDIT: working link http://tomascordero.com/example/playerlist.php
Last edited by killfrog47 on Tue Mar 12, 2013 10:33 am, edited 1 time in total.
User avatar
Helx
Posts: 350
Joined: Thu May 17, 2012 6:45 am
Location: Auckland, New Zealand

Re: Getting Minecraft info from server using PHP.

Post by Helx »

Have you though about this tutorial? http://betterphp.co.uk/playlist.html?pi ... 23E5E527D0
I don't know if it's still in-date, but it doesn't require any plugins so should be good for a while yet.

(Btw, your link gives a server error)

EDIT: Oops, my mistake. You wanted to retrieve the names of players and what-have-you. You're going to need to look into MineQuery. And to get the faces of the players skin, use this code snippet: viewtopic.php?f=5&t=1698
User avatar
killfrog47
Posts: 106
Joined: Tue Mar 12, 2013 2:52 am
Location: Tempe, AZ
Contact:

Re: Getting Minecraft info from server using PHP.

Post by killfrog47 »

Oh oops i put an "S" at the end of example lol ill edit it =) and ill take a look at those links
Post Reply