mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
Attempt to fix whisper exception and formatType checkstyle
This commit is contained in:
1 parent
c4387ca3b4
commit
14c37d7f78
3 files changed
+5
-6
No files matched your search
+2
-2
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user