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; }