Add permission to bypass msgtoggle

This commit is contained in:
Draycia committed 2020-10-11 21:08:30 -07:00
1 parent 272a530527
commit 8b182cc6fa
1 file changed
+2
@@ -53,6 +53,7 @@ public class MessageCommand {
return;
}
if (!sender.hasPermission("carbonchat.msgtoggle.bypass")) {
final ChatChannel senderWhisperChannel = this.carbonChat.channelRegistry().get("whisper");
final UserChannelSettings senderSettings = sender.channelSettings(senderWhisperChannel);
@@ -70,6 +71,7 @@ public class MessageCommand {
sender.sendMessage(this.carbonChat.messageProcessor().processMessage(message));
return;
}
}
final Optional<String> message = context.get("message");