Fix /list
This commit is contained in:
parent
17eb4e8bdd
commit
f3b74b65ed
|
@ -6,7 +6,7 @@ function send_messages(res)
|
||||||
local x = minetest.get_connected_players()
|
local x = minetest.get_connected_players()
|
||||||
local text = "List of Players:\n"
|
local text = "List of Players:\n"
|
||||||
for j, i in ipairs(x) do
|
for j, i in ipairs(x) do
|
||||||
local text = text .. i.get_player_name(i)
|
text = text .. "\n" .. i.get_player_name(i)
|
||||||
end
|
end
|
||||||
http_api.fetch_async({url = "http://localhost:" .. port .. "/sendCode",
|
http_api.fetch_async({url = "http://localhost:" .. port .. "/sendCode",
|
||||||
post_data = {message = text}})
|
post_data = {message = text}})
|
||||||
|
|
Loading…
Reference in New Issue