Returns the server's recent TPS (ticks per second) and tick timing metrics.
None.
Three numbers returned by the server's TPS sampler: recent TPS and tick timing metrics. Their exact sampling windows are determined by the server implementation.
command('lag', function(sender)
local t1, t2, t3 = server.tps()
sender:send(string.format("TPS: %.1f, %.1f, %.1f", t1, t2, t3))
return true
end)