Skip to content

Commit

Permalink
Better getTps
Browse files Browse the repository at this point in the history
maybe not better
  • Loading branch information
Dreeam-qwq committed Feb 7, 2024
1 parent 85a884f commit aa22739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/surf/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
public class Utils {

public static double getTps() {
return Math.round(Bukkit.getServer().getTPS()[0]);
double tps = Bukkit.getServer().getTPS()[0];
return Double.parseDouble(String.format("%.2f", tps));
}

public static void sendMessage(Player player, String string) {
Expand Down

0 comments on commit aa22739

Please sign in to comment.