From c249aca28175be8f98367bb510210e2753c3204d Mon Sep 17 00:00:00 2001 From: KanekiLeChomeur <52374013+KanekiLeChomeur@users.noreply.github.com> Date: Mon, 13 Jun 2022 21:16:01 +0200 Subject: [PATCH] Patch --- CustomAlerts/src/CustomAlerts/EventListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CustomAlerts/src/CustomAlerts/EventListener.php b/CustomAlerts/src/CustomAlerts/EventListener.php index 3518e71..df04502 100755 --- a/CustomAlerts/src/CustomAlerts/EventListener.php +++ b/CustomAlerts/src/CustomAlerts/EventListener.php @@ -81,8 +81,8 @@ public function onReceivePacket(DataPacketReceiveEvent $event){ $ev->setMessage($this->plugin->getFullServerMessage()); } - $cevent->call(); - if($cevent->getMessage() != ""){ + $ev->call(); + if($ev->getMessage() != ""){ $origin->disconnect($cevent->getMessage()); return; }