mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +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(", "));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user