Skip to content

Commit

Permalink
Applied PM5 modifcations
Browse files Browse the repository at this point in the history
  • Loading branch information
KanekiLeChomeur authored Oct 12, 2023
1 parent 9255f9a commit 2ddcdf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CustomAlerts/src/CustomAlerts/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function onPlayerPreLogin(PlayerPreLoginEvent $event){
}
$cevent->call();
if($cevent->getMessage() != ""){
$event->setKickReason(PlayerPreLoginEvent::KICK_REASON_SERVER_WHITELISTED, $cevent->getMessage());
$event->setKickFlag(PlayerPreLoginEvent::KICK_FLAG_SERVER_WHITELISTED, $cevent->getMessage());
return;
}
}
Expand Down

0 comments on commit 2ddcdf2

Please sign in to comment.