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
LMAOorg -> spigotmc -> TicksPerSecondCommand.class
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!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
