From 039799b2d37514caca5d3dfd1c7c66b74706b047 Mon Sep 17 00:00:00 2001 From: RoccoDev Date: Wed, 7 Dec 2022 19:14:32 +0100 Subject: [PATCH] legacy-chat: fix cancel on < 1.19 --- .../proxy/protocol/packet/chat/legacy/LegacyChatHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/legacy/LegacyChatHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/legacy/LegacyChatHandler.java index ef751bf48..767c59543 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/legacy/LegacyChatHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/legacy/LegacyChatHandler.java @@ -45,7 +45,7 @@ public class LegacyChatHandler implements ChatHandler { } this.server.getEventManager().fire(new PlayerChatEvent(this.player, packet.getMessage())) .whenComplete((chatEvent, throwable) -> { - if (chatEvent.getResult().isAllowed()) { + if (!chatEvent.getResult().isAllowed()) { return; }