mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-30 04:30:58 +02:00
8 lines
257 B
Lua
8 lines
257 B
Lua
function get_online_players(filename)
|
|
game.write_file(filename, "Online players: (1)", 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
|