forked from mtcontrib/factions
Fixed /f who showing only one person
This commit is contained in:
parent
0670497f94
commit
c87e691a42
|
@ -393,8 +393,8 @@ factions.register_command("who", {
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
minetest.chat_send_player(player, "Players in faction "..faction.name..": ")
|
minetest.chat_send_player(player, "Players in faction "..faction.name..": ")
|
||||||
for player, rank in pairs(faction.players) do
|
for p, rank in pairs(faction.players) do
|
||||||
minetest.chat_send_player(player, player.." ("..rank..")")
|
minetest.chat_send_player(player, p.." ("..rank..")")
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user