org.bukkit.Bukkit
me.lucko.spark.api.Spark
me.lucko.spark.api.statistic.StatisticWindow
net.luckperms.api.LuckPermsProvider
net.luckperms.api.node.NodeType
expression [spark] tps:
return type: number
get:
return Bukkit.getServicesManager().getRegistration(Spark.class).getProvider().tps().poll(StatisticWindow.TicksPerSecond.SECONDS_5)```
#Skript reflect addon (need help with)
1 messages · Page 1 of 1 (latest)
<#FFF2CE>ᴛᴘs: <#ffcf4a>%"*20" if spark tps > 20 else spark tps%
heres the line for it
You using Skript mirror?
I would recommend you using Skript-reflect ITS a fork of mirror and Up to date
why not just do %tps%
because %tps% returns 3 values
nvm, mb i was using reflectr
reflect
Skript reflect addon (need help with)
Check the console, there may be some errors/warnings being sent.
After that, check at what step you encounter a null in your code.
first element of tps
second element of tps
third element of tps
idk which one does which
but
yes
You can use dedicated expressions for more readability.
tps from [the] last 5[ ]m[inutes]
tps from [the] last 15[ ]m[inutes]```
i need every 1 second
tps from the last second?
doesnt work
don't think you can get it shorter than a minute
set {_tps} to "*20"
set {_tps} to spark tps if spark tps > 20
<#FFF2CE>ᴛᴘs: <#ffcf4a>%{_tps}%```
🤷♂️