Core: Players console command now shows players' IP addresses (patch contributed by STR_Warrior)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1220 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
d47ff55203
commit
8e64ad0848
@ -82,7 +82,7 @@ function HandleConsolePlayers(Split)
|
|||||||
if (PlayersInWorlds[WorldName] == nil) then
|
if (PlayersInWorlds[WorldName] == nil) then
|
||||||
PlayersInWorlds[WorldName] = {};
|
PlayersInWorlds[WorldName] = {};
|
||||||
end
|
end
|
||||||
table.insert(PlayersInWorlds[WorldName], Player:GetName());
|
table.insert(PlayersInWorlds[WorldName], Player:GetName() .. " @ " .. Player:GetIP());
|
||||||
end
|
end
|
||||||
|
|
||||||
cRoot:Get():ForEachPlayer(AddToTable);
|
cRoot:Get():ForEachPlayer(AddToTable);
|
||||||
|
Loading…
Reference in New Issue
Block a user