I accidentally deleted my branch, but either way, the entire information is inside protocolstatus.
It has 2 functions, one of them tells you the online total count, the other tells you the playerlist (name and level).
To "simulate" a player for otserver list all you have to do is create a table...