From bd291cd4c20d81d7669a459ddfa983dc1cc0c1db Mon Sep 17 00:00:00 2001 From: kremsy Date: Fri, 3 Jan 2014 21:08:43 +0100 Subject: [PATCH] servertime -> playtime --- application/core/Players/PlayerManager.php | 4 ++-- application/core/Statistics/StatisticCollector.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/core/Players/PlayerManager.php b/application/core/Players/PlayerManager.php index 0137aa1c..0032bbcd 100644 --- a/application/core/Players/PlayerManager.php +++ b/application/core/Players/PlayerManager.php @@ -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); } } diff --git a/application/core/Statistics/StatisticCollector.php b/application/core/Statistics/StatisticCollector.php index f8993b88..3d093453 100644 --- a/application/core/Statistics/StatisticCollector.php +++ b/application/core/Statistics/StatisticCollector.php @@ -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