mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!sender.hasPermission("carbonchat.msgtoggle.bypass")) {
|
||||||
final ChatChannel senderWhisperChannel = this.carbonChat.channelRegistry().get("whisper");
|
final ChatChannel senderWhisperChannel = this.carbonChat.channelRegistry().get("whisper");
|
||||||
final UserChannelSettings senderSettings = sender.channelSettings(senderWhisperChannel);
|
final UserChannelSettings senderSettings = sender.channelSettings(senderWhisperChannel);
|
||||||
|
|
||||||
@@ -70,6 +71,7 @@ public class MessageCommand {
|
|||||||
sender.sendMessage(this.carbonChat.messageProcessor().processMessage(message));
|
sender.sendMessage(this.carbonChat.messageProcessor().processMessage(message));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final Optional<String> message = context.get("message");
|
final Optional<String> message = context.get("message");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user