What command did you use?
Dynamically getting a player list is sadly impossible by Command Computers.
Well… It isn't impossible, but my solution isn't very elegant
You can run this command:
commands.exec("tp @a ~ ~ ~")
It should return true, then a table in this format:
{
"Teleported player to x.0, y.0, z.0",
"Teleported player2 to x.0, y.0, z.0",
ect
}
You should be able to use a Lua pattern to get the player from each entry
If you use ~ ~ ~ as the location, it SHOULDN'T move the player, but your screen does jiggle a bit in 1.7, its fixed in MC 1.8
I was trying things like 'tellraw', but I think /tp is one of they only commands that gives you the names