mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Actually cancel the event if told to
This commit is contained in:
1 parent
fa2d5b2d60
commit
1699fa7a85
1 file changed
+3
-3
+3
-3
@@ -39,9 +39,9 @@ public class BukkitChatListener implements Listener {
|
||||
channel = this.carbonChat.channelRegistry().defaultValue();
|
||||
}
|
||||
|
||||
// if (channel.shouldCancelChatEvent()) {
|
||||
// event.setCancelled(true);
|
||||
// }
|
||||
if (channel.options().shouldCancelChatEvent()) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
for (final ChatChannel entry : this.carbonChat.channelRegistry()) {
|
||||
if (!(entry instanceof TextChannel)) {
|
||||
|
||||
Reference in new issue
Block a user