Mspt (Expression) — Skript
Addon: Skript · Category: Expression
Syntax
[(mean|average)] mspt [(from|over|in) [the] last (1:10 seconds|2:minute|3:5 minutes)]Description
The duration of the server's ticks in milliseconds, as measured by spark. Defaults to the mean tick duration of the window, but the minimum, maximum, median and 95th percentile can be asked for instead. Without a window, this returns all three of spark's averages, in order: the last 10 seconds, minute and 5 minutes.
Examples
broadcast "%mspt from the last minute%"
every 30 seconds:
if 95th percentile mspt from the last 10 seconds > 45:
broadcast mm("<red>The server is lagging!")