From fdfa17f3a01d2e6b69a449a79fbc926e8d30fb1a Mon Sep 17 00:00:00 2001 From: KanekiLeChomeur <52374013+KanekiLeChomeur@users.noreply.github.com> Date: Mon, 13 Jun 2022 21:17:19 +0200 Subject: [PATCH] Patch Event --- CustomAlerts/src/CustomAlerts/EventListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CustomAlerts/src/CustomAlerts/EventListener.php b/CustomAlerts/src/CustomAlerts/EventListener.php index df04502..0fb8368 100755 --- a/CustomAlerts/src/CustomAlerts/EventListener.php +++ b/CustomAlerts/src/CustomAlerts/EventListener.php @@ -83,7 +83,7 @@ public function onReceivePacket(DataPacketReceiveEvent $event){ $ev->call(); if($ev->getMessage() != ""){ - $origin->disconnect($cevent->getMessage()); + $origin->disconnect($ev->getMessage()); return; } }