diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandInfo.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandInfo.java index aed3ced..9555a61 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandInfo.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandInfo.java @@ -33,7 +33,7 @@ public class CommandInfo implements CommandExecutor { StringBuilder tpsmessage = new StringBuilder().append(BauSystem.PREFIX).append("TPS:§e"); for(float tps : getTps()){ - tpsmessage.append(tps); + tpsmessage.append(" " + tps); } sender.sendMessage(tpsmessage.toString()); return false; @@ -52,7 +52,7 @@ public class CommandInfo implements CommandExecutor { float[] roundedTps = new float[3]; for(int i = 0; i < tps.length; i++) { - roundedTps[i] = Float.parseFloat(String.format("%.1f", tps[0])); + roundedTps[i] = Math.round(tps[0]); } return roundedTps; } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/BauScoreboard.java b/BauSystem_Main/src/de/steamwar/bausystem/world/BauScoreboard.java index 683fc09..4618077 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/BauScoreboard.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/BauScoreboard.java @@ -30,7 +30,7 @@ public class BauScoreboard implements Listener { data.put("§eTNT§8: " + (!CommandTNT.getInstance().isOn() ? "§aan" : "§caus"), 4); data.put("§eFreeze§8: " + (!CommandFreeze.getInstance().isOn() ? "§aan" : "§caus"), 3); data.put("§3 ", 2); - data.put("§eTPS§8: " + CommandInfo.getTps()[0], 1); + data.put("§eTPS§8: §7" + CommandInfo.getTps()[0], 1); return data; }