mirror of
https://github.com/System-End/Discord-MC-Chat.git
synced 2026-04-19 23:22:49 +00:00
Fix info message when there are more than one client
This commit is contained in:
parent
6433349651
commit
fc6612f8ac
3 changed files with 3 additions and 5 deletions
|
|
@ -43,9 +43,7 @@ public class InfoCommand implements Command {
|
|||
infoSnapshot.values().stream()
|
||||
.sorted(Comparator.comparing(packet -> packet.serverName == null ? "" : packet.serverName, String.CASE_INSENSITIVE_ORDER))
|
||||
.forEach(packet -> {
|
||||
if (!clientsBuilder.isEmpty()) {
|
||||
clientsBuilder.append("\n");
|
||||
}
|
||||
clientsBuilder.append(" ");
|
||||
clientsBuilder.append(buildServerClientInfo(packet));
|
||||
});
|
||||
clientsInfo = clientsBuilder.toString();
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ commands:
|
|||
base: |
|
||||
[DMCC Server]
|
||||
Online clients: ({}/{})
|
||||
{}
|
||||
{}
|
||||
no_clients: "- No DMCC clients online."
|
||||
clients: |
|
||||
- [{}]
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ commands:
|
|||
base: |
|
||||
[DMCC 服务端]
|
||||
在线客户端:({}/{})
|
||||
{}
|
||||
{}
|
||||
no_clients: "- 当前没有在线 DMCC 客户端。"
|
||||
clients: |
|
||||
- [{}]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue