mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
apply changes from review
This commit is contained in:
3 files changed
+8
-6
No files matched your search
@@ -86,12 +86,17 @@ public class ChannelListCommand extends BaseCommand {
|
||||
}
|
||||
|
||||
private void makeList(Iterator<ChatChannel> iterator, TextComponent.Builder list) {
|
||||
String listSeparator = carbonChat.getLanguage().getString("channel-list-separator");
|
||||
while (iterator.hasNext()) {
|
||||
ChatChannel channel = iterator.next();
|
||||
list.append(TextComponent.of(channel.getName()));
|
||||
|
||||
if (iterator.hasNext()) {
|
||||
list.append(TextComponent.of(", "));
|
||||
if (listSeparator != null) {
|
||||
list.append(TextComponent.of(listSeparator));
|
||||
} else {
|
||||
list.append(TextComponent.of(", "));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user