1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-05 22:53:39 +02:00
RedMew/server_api.lua

7 lines
250 B
Lua
Raw Normal View History

2018-02-01 00:08:58 +02:00
function get_online_players()
game.write_file("api-output", "", false,0) --delete
local online_players = game.connected_players
for _,p in pairs(online_players) do
game.write_file("api-output", p.name, true,0)
end
end