apply changes from review

This commit is contained in:
Larry committed 2020-08-24 22:33:34 -06:00
1 parent 03be997159
commit e403064e53
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(", "));
}
}
}
}
+1
View File
@@ -19,6 +19,7 @@ other-nickname-set: '<green><user><reset>''s nickname was set to <nickname><gree
other-nickname-reset: '<green><user><reset>''s nickname was reset!'
available-channels-list: '<green>Available Channels:<reset> <list>.'
unavailable-channels-list: '<red>Unavailable Channels:<reset> <list>.'
channel-list-separator: ', '
user-must-be-online: '<red><player> must be online!'
# The following messages are compatible with PlaceholderAPI and MiniMessage/MineDown