Attempt to fix whisper exception and formatType checkstyle

This commit is contained in:
Draycia committed 2020-10-18 04:29:06 -07:00
1 parent c4387ca3b4
commit 14c37d7f78
3 files changed
+5 -6

No files matched your search

@@ -55,7 +55,7 @@ public class MessageCommand {
}
if (!sender.hasPermission("carbonchat.msgtoggle.bypass")) {
final ChatChannel senderWhisperChannel = this.carbonChat.channelRegistry().get("whisper");
final ChatChannel senderWhisperChannel = new CarbonWhisperChannel(sender, receiver);
final UserChannelSettings senderSettings = sender.channelSettings(senderWhisperChannel);
if (senderSettings.ignored()) {
@@ -64,7 +64,7 @@ public class MessageCommand {
return;
}
final ChatChannel receiverWhisperChannel = this.carbonChat.channelRegistry().get("whisper");
final ChatChannel receiverWhisperChannel = new CarbonWhisperChannel(receiver, sender);
final UserChannelSettings receiverSettings = sender.channelSettings(receiverWhisperChannel);
if (receiverSettings.ignored()) {