improvement, maps voted statistic

This commit is contained in:
kremsy
2014-01-03 19:41:00 +01:00
parent 7b6ff4dcb8
commit 7fc70f4489
2 changed files with 14 additions and 0 deletions

View File

@ -270,7 +270,9 @@ class KarmaPlugin implements CallbackListener, Plugin {
$map = $this->maniaControl->mapManager->getCurrentMap();
$voted = $this->getPlayerVote($player, $map);
var_dump($voted);
if(!$voted){
var_dump("test");
$this->maniaControl->statisticManager->incrementStat(self::STAT_PLAYER_MAPVOTES, $player, $this->maniaControl->server->getLogin());
}