mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
apply changes from review
This commit is contained in:
3 files changed
+8
-6
No files matched your search
@@ -325,11 +325,7 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
}
|
||||
|
||||
if (isIgnorable()) {
|
||||
if (target.isIgnoringUser(sender) && !targetPlayer.hasPermission("carbonchat.ignore.exempt")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return !target.getChannelSettings(this).isIgnored();
|
||||
return !target.isIgnoringUser(sender) || targetPlayer.hasPermission("carbonchat.ignore.exempt");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -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