What's new

Online Users

Woody2371

Level 47
Joined
Jan 29, 2011
Messages
1,492
Reaction score
1
Credits
9,652
Where does MC keep its online users listed? If it's listed in something we can at least intercept, we could create a "Whose online on our hosted servers" list, expanding this to include all BoN hosted servers.



Could be nice, especially for things like MC when you can't always tell whose online.



Will talk to you about this further Noodle.
 

cbroughton

Level 19
Joined
Feb 16, 2011
Messages
140
Reaction score
0
Credits
23,534
I could create a Bukkit modification to dump the online users to a text file, or submit it to a PHP page (then having it updated in the database, etcetera.) and fetched by a script / widget inside the forum.



IE: Bukkit modification tells a page (mcs.php) on the website here (via a POST request) that <server id> has <x> players online, and send the names of the connected players as well.



Then a script on the site here (the mcs.php) can save the information to a database table, and a widget inside the forum can query that information, IE: Get a list of people on X server, get a list of people on all servers, find what server Y is on, stuff like that.
 

Woody2371

Level 47
Joined
Jan 29, 2011
Messages
1,492
Reaction score
1
Credits
9,652
Is pretty much what I envisioned, and I think it would be a useful thing to have. You could even write a quick bit of AJAX to pull the online users in real time (E.G online.php pulls the users online from a database, then the javascript queries the php file, grabs the XML results and posts it to the page, maybe on a repeater every one minute or so.)



Of course things like this can sometimes drain bandwidth, but certainly something to look into.
 
Top