if ($event = $this->driver->getEvent()) {
$this->ui->onEvent($event, $connection);
$this->plugins->setEvent($event);
- $this->plugins->preEvent();
+
+ if (!$this->plugins->preEvent()) {
+ continue;
+ }
+
$this->plugins->{'on' . ucfirst($event->getType())}();
}