vanish bypass perms and ignoreCancelled on chat

This commit is contained in:
Draycia committed 2021-10-18 13:43:50 -07:00
1 parent 2964e7ef09
commit 9c576e8cdb
6 files changed
+20 -5

No files matched your search

@@ -37,7 +37,7 @@ public final class BukkitChatListener implements Listener {
this.registry = registry;
}
@EventHandler
@EventHandler(ignoreCancelled = true)
public void onPlayerChat(final @NonNull AsyncChatEvent event) {
final var playerResult = this.carbonChat.server().player(event.getPlayer().getUniqueId()).join();
final @Nullable CarbonPlayer sender = playerResult.player();