1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/server_api.lua

8 lines
299 B
Lua

function bot_command_players(filename)
game.write_file(filename, string.format("Online players (%d):",#game.connected_players), false,0)
local online_players = #game.connected_players
for _,p in pairs(online_players) do
game.write_file(filename, p.name, true,0)
end
end