CommandHelper

CommandHelper

46.5k Downloads

add view tps in get_server_info()

LadyCailinBot opened this issue ยท 5 comments

commented

CMDHELPER-3070 - Reported by bexco2010

sams as title

commented

Comment by PseudoKnight

Spigot measures this, but there's no API to access their measurement. There isn't a single result either. That's why /tps gives you TPS over the last 5/10/15 minutes. CH would have to do its own measurements. Personally I find average tick time way more helpful than TPS.

commented

Comment by macjuul

@PseudoKnight You can actually get the Spigot TPS with MinecraftServer.getServer().recentTps
It will give you a double list with the TPS of the last 1, 5 and 15 minutes, just like /tps

commented

Comment by PseudoKnight

I'm aware of that, but that's not in the API. I could throw that in my extension, though.

commented

Comment by macjuul

I actually added it to my CHExodius extension yesterday :P

commented

Comment by PseudoKnight

People have been using CHGroovy to get it too. A few months back we figured it out over IRC.

This is a duplicate issue, so I'll close it.