servertime -> playtime

This commit is contained in:
kremsy 2014-01-03 21:08:43 +01:00
parent bb2e3b13fd
commit bd291cd4c2
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class PlayerManager implements CallbackListener {
const TABLE_PLAYERS = 'mc_players';
const SETTING_JOIN_LEAVE_MESSAGES = 'Enable Join & Leave Messages';
const STAT_JOIN_COUNT = 'Joins';
const STAT_PLAYTIME = 'Playtime';
const STAT_SERVERTIME = 'Servertime';
/**
* Public Properties
@ -325,6 +325,6 @@ class PlayerManager implements CallbackListener {
}
$playedTime = time() - $player->joinTime;
return $this->maniaControl->statisticManager->insertStat(self::STAT_PLAYTIME, $player, $this->maniaControl->server->getServerId(), $playedTime);
return $this->maniaControl->statisticManager->insertStat(self::STAT_SERVERTIME, $player, $this->maniaControl->server->getServerId(), $playedTime);
}
}

View File

@ -44,7 +44,7 @@ class StatisticCollector implements CallbackListener {
*
* @param \ManiaControl\ManiaControl $maniaControl
*/
public function __construct(ManiaControl $maniaControl) {
public function __construct(ManiaControl $maniaControl) { //TODO Stat player playtime without spec and warmup
$this->maniaControl = $maniaControl;
//Register Callbacks