diff --git a/application/plugins/CustomVotes.php b/application/plugins/CustomVotes.php index 1b830f77..ed625230 100644 --- a/application/plugins/CustomVotes.php +++ b/application/plugins/CustomVotes.php @@ -469,7 +469,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP $timeUntilExpire = $this->currentVote->expireTime - time(); $this->showVoteWidget($timeUntilExpire, $votePercentage); - $playerCount = count($this->maniaControl->playerManager->getPlayers()); + $playerCount = $this->maniaControl->playerManager->getPlayerCount(); $playersVoteRatio = (100 / $playerCount * $this->currentVote->getVoteCount()) / 100; //Check if vote is over