Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
KanekiLeChomeur authored Jun 13, 2022
1 parent 1380364 commit c249aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CustomAlerts/src/CustomAlerts/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c249aca

Please sign in to comment.