Optimize CommandInfo
Dieser Commit ist enthalten in:
Ursprung
a41602bd37
Commit
5372f84409
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren