mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-05 22:53:39 +02:00
7 lines
250 B
Lua
7 lines
250 B
Lua
|
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
|