Fixed /f who showing only one person

This commit is contained in:
shamoanjac 2016-08-14 23:55:42 +02:00
parent 0670497f94
commit c87e691a42

View File

@ -393,8 +393,8 @@ factions.register_command("who", {
return true
end
minetest.chat_send_player(player, "Players in faction "..faction.name..": ")
for player, rank in pairs(faction.players) do
minetest.chat_send_player(player, player.." ("..rank..")")
for p, rank in pairs(faction.players) do
minetest.chat_send_player(player, p.." ("..rank..")")
end
return true
end