mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 22:15:37 +00:00
Add permission to bypass msgtoggle
This commit is contained in:
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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user