hotfix and code cleanup
Dieser Commit ist enthalten in:
Ursprung
43e40665d3
Commit
a27344af1c
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren