It's just a really basic system, not optimized completely but considering it's a panel the player opens very rarely, the effect of optimizing it is negligible so I'm not even worrying about spending time on that.
If someone feels like writing an optimized version I'm happy to change this and credit the optimizations to you.
Also, there's no reason why you can't put this loop into your own process then output it to something flashier than a stat panel.
var/global
PLAYERS[0]
mob
Login()
PLAYERS.Add(src.name)
Logout()
PLAYERS.Remove(src.name)
Stat()
statpanel("World")
stat("Players Online:\n")
for(var/player in PLAYERS)
stat(player)