mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-14 10:13:13 +02:00
8 lines
298 B
Lua
8 lines
298 B
Lua
function get_online_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
|