Fix /list

This commit is contained in:
Ceda EI 2019-01-29 11:11:19 +05:30
parent 17eb4e8bdd
commit f3b74b65ed
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ function send_messages(res)
local x = minetest.get_connected_players()
local text = "List of Players:\n"
for j, i in ipairs(x) do
local text = text .. i.get_player_name(i)
text = text .. "\n" .. i.get_player_name(i)
end
http_api.fetch_async({url = "http://localhost:" .. port .. "/sendCode",
post_data = {message = text}})