1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-30 04:30:58 +02:00
RedMew/server_api.lua
2018-02-01 09:05:36 -05:00

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