1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-07-01 00:44:57 +02:00
Files
RedMew/server_api.lua

12 lines
377 B
Lua
Raw Normal View History

function bot_command_players(filename)
2018-02-01 09:16:10 -05:00
game.write_file(filename, string.format("Online players (%d):",#game.connected_players), false,0)
local online_players = #game.connected_players
2018-02-01 09:05:36 -05:00
for _,p in pairs(online_players) do
game.write_file(filename, p.name, true,0)
2018-01-31 17:08:58 -05:00
end
2018-02-01 09:05:36 -05:00
end
2018-02-01 15:16:49 -05:00
function bot_command_time()
game.print(math.floor(game.tick / 60))
end