small fix serverrankings plugin

This commit is contained in:
kremsy 2014-04-20 16:13:24 +02:00 committed by Steffen Schröder
parent 0859f54722
commit 36a6cf786d
2 changed files with 1 additions and 2 deletions

View File

@ -143,7 +143,7 @@ class StatisticManager {
* @param $serverIndex * @param $serverIndex
* @param $minValue * @param $minValue
* @internal param $orderedBy * @internal param $orderedBy
* @return object * @return array
*/ */
public function getStatsRanking($statName = '', $serverIndex = -1, $minValue = -1) { public function getStatsRanking($statName = '', $serverIndex = -1, $minValue = -1) {
if (isset($this->specialStats[$statName])) { if (isset($this->specialStats[$statName])) {

View File

@ -208,7 +208,6 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener {
$ranks = $this->maniaControl->statisticManager->getStatsRanking(StatisticCollector::STAT_ON_HIT, -1, $minHits); $ranks = $this->maniaControl->statisticManager->getStatsRanking(StatisticCollector::STAT_ON_HIT, -1, $minHits);
arsort($ranks);
break; break;
case self::RANKING_TYPE_RECORDS: //TODO verify workable status case self::RANKING_TYPE_RECORDS: //TODO verify workable status
if (!$this->maniaControl->pluginManager->isPluginActive('LocalRecordsPlugin')) { if (!$this->maniaControl->pluginManager->isPluginActive('LocalRecordsPlugin')) {