SteamWar/BauSystem
Archiviert
13
0

Optimize CommandInfo

Dieser Commit ist enthalten in:
jojo 2021-02-09 21:07:24 +01:00
Ursprung a41602bd37
Commit 5372f84409

Datei anzeigen

@ -56,18 +56,16 @@ public class CommandInfo implements CommandExecutor {
} }
sender.sendMessage(membermessage.toString()); sender.sendMessage(membermessage.toString());
if (TPSUtils.isWarping()) { StringBuilder tpsMessage = new StringBuilder();
sender.sendMessage(BauSystem.PREFIX + "TPS:§e" + tpsMessage.append(BauSystem.PREFIX).append("TPS:§e");
" " + getTps(TPSWatcher.TPSType.ONE_SECOND) + tpsMessage.append(" ").append(getTps(TPSWatcher.TPSType.ONE_SECOND));
" " + getTps(TPSWatcher.TPSType.TEN_SECONDS)); tpsMessage.append(" ").append(getTps(TPSWatcher.TPSType.TEN_SECONDS));
} else { if (!TPSUtils.isWarping()) {
sender.sendMessage(BauSystem.PREFIX + "TPS:§e" + tpsMessage.append(" ").append(TPSWatcher.getTPS(TPSWatcher.TPSType.ONE_MINUTE));
" " + TPSWatcher.getTPS(TPSWatcher.TPSType.ONE_SECOND) + tpsMessage.append(" ").append(TPSWatcher.getTPS(TPSWatcher.TPSType.FIVE_MINUTES));
" " + TPSWatcher.getTPS(TPSWatcher.TPSType.TEN_SECONDS) + tpsMessage.append(" ").append(TPSWatcher.getTPS(TPSWatcher.TPSType.TEN_MINUTES));
" " + TPSWatcher.getTPS(TPSWatcher.TPSType.ONE_MINUTE) +
" " + TPSWatcher.getTPS(TPSWatcher.TPSType.FIVE_MINUTES) +
" " + TPSWatcher.getTPS(TPSWatcher.TPSType.TEN_MINUTES));
} }
sender.sendMessage(tpsMessage.toString());
return false; return false;
} }