mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +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();
|
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)) {
|
||||||
|
|||||||
Reference in new issue
Block a user