Skip to content

Commit

Permalink
Patch Full Server Kick
Browse files Browse the repository at this point in the history
  • Loading branch information
KanekiLeChomeur authored Jun 18, 2022
1 parent 349b165 commit afcd09e
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 @@ -74,7 +74,7 @@ public function onReceivePacket(DataPacketReceiveEvent $event){
return;
}
}
if(count($this->plugin->getServer()->getOnlinePlayers()) <= $this->plugin->getServer()->getMaxPlayers() || count($this->plugin->getServer()->getOnlinePlayers()) - 1 < $this->plugin->getServer()->getMaxPlayers()){
if(count($this->plugin->getServer()->getOnlinePlayers()) >= $this->plugin->getServer()->getMaxPlayers() || count($this->plugin->getServer()->getOnlinePlayers()) - 1 > $this->plugin->getServer()->getMaxPlayers()){
$ev = new CustomAlertsFullServerKickEvent($origin);

if($this->plugin->isFullServerMessageCustom()){
Expand Down

0 comments on commit afcd09e

Please sign in to comment.