Actually cancel the event if told to

This commit is contained in:
underscore11code authored and Mariell committed 2020-12-27 09:43:20 +01:00
1 parent fa2d5b2d60
commit 1699fa7a85
1 file changed
+3 -3
@@ -39,9 +39,9 @@ public class BukkitChatListener implements Listener {
channel = this.carbonChat.channelRegistry().defaultValue(); channel = this.carbonChat.channelRegistry().defaultValue();
} }
// if (channel.shouldCancelChatEvent()) { if (channel.options().shouldCancelChatEvent()) {
// event.setCancelled(true); event.setCancelled(true);
// } }
for (final ChatChannel entry : this.carbonChat.channelRegistry()) { for (final ChatChannel entry : this.carbonChat.channelRegistry()) {
if (!(entry instanceof TextChannel)) { if (!(entry instanceof TextChannel)) {