How to change SPIGOT's TPS ?

Status
This thread has been locked.

Koei

Banned
Feedback score
14
Posts
332
Reactions
114
Resources
0
Hey , I would like to know how can I change and at which class I can change the spigot's TPS ? IF I change it I want it to effect the server its not just for the display
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

kampai

Feedback score
8
Posts
361
Reactions
187
Resources
0
org -> spigotmc -> TicksPerSecondCommand.class
LMAO

If you want to change the TPS it's possible to do it through reflection. You can access and change a field called TPS in the class MinecraftServer.class, which is an nms class. That's were the tick loop is and it uses a target time which equates to around this:

TPS / 1 Billion
Then they calculate the wait time using timeElapsed / 1 million

Though I don't recommend changing the TPS since it could mess with timings
 

Koei

Banned
Feedback score
14
Posts
332
Reactions
114
Resources
0
LMAO

If you want to change the TPS it's possible to do it through reflection. You can access and change a field called TPS in the class MinecraftServer.class, which is an nms class. That's were the tick loop is and it uses a target time which equates to around this:

TPS / 1 Billion
Then they calculate the wait time using timeElapsed / 1 million

Though I don't recommend changing the TPS since it could mess with timings
I want it to change for my practice because someone told be that modifying tps is good for some hitdetection etc.[DOUBLEPOST=1503948753][/DOUBLEPOST]
LMAO

If you want to change the TPS it's possible to do it through reflection. You can access and change a field called TPS in the class MinecraftServer.class, which is an nms class. That's were the tick loop is and it uses a target time which equates to around this:

TPS / 1 Billion
Then they calculate the wait time using timeElapsed / 1 million

Though I don't recommend changing the TPS since it could mess with timings
however thanks for helping me!
 
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/koei-scam-report.252237/)
Status
This thread has been locked.
Top