#Skript reflect addon (need help with)

1 messages · Page 1 of 1 (latest)

subtle cypress
#
    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)```
#

<#FFF2CE>ᴛᴘs: <#ffcf4a>%"*20" if spark tps > 20 else spark tps%

#

heres the line for it

silver tapir
#

You using Skript mirror?

I would recommend you using Skript-reflect ITS a fork of mirror and Up to date

tacit nebula
#

why not just do %tps%

subtle cypress
subtle cypress
#

reflect

#

Skript reflect addon (need help with)

junior dagger
#

After that, check at what step you encounter a null in your code.

tacit nebula
#

idk which one does which

#

but

#

yes

junior dagger
#

You can use dedicated expressions for more readability.

tps from [the] last 5[ ]m[inutes]
tps from [the] last 15[ ]m[inutes]```
subtle cypress
#

i need every 1 second

tacit nebula
#

tps from the last second?

subtle cypress
#

doesnt work

lavish torrent
#

i mean

#

it does say minute there

#

not second

tacit nebula
#

don't think you can get it shorter than a minute

tacit nebula
#

🤷‍♂️