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
master
madmaxoft@gmail.com 2013-02-19 14:13:44 +00:00
parent d47ff55203
commit 8e64ad0848
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ function HandleConsolePlayers(Split)
if (PlayersInWorlds[WorldName] == nil) then
PlayersInWorlds[WorldName] = {};
end
table.insert(PlayersInWorlds[WorldName], Player:GetName());
table.insert(PlayersInWorlds[WorldName], Player:GetName() .. " @ " .. Player:GetIP());
end
cRoot:Get():ForEachPlayer(AddToTable);