This commit is contained in:
kremsy 2014-04-24 22:03:36 +02:00 committed by Steffen Schröder
parent 335901edd8
commit 2ff970101d

View File

@ -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