small fix serverrankings plugin
This commit is contained in:
		
				
					committed by
					
						 Steffen Schröder
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							0859f54722
						
					
				
				
					commit
					36a6cf786d
				
			| @@ -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])) { | ||||||
|   | |||||||
| @@ -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')) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user