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        $minValue | ||||
| 	 * @internal param $orderedBy | ||||
| 	 * @return object | ||||
| 	 * @return array | ||||
| 	 */ | ||||
| 	public function getStatsRanking($statName = '', $serverIndex = -1, $minValue = -1) { | ||||
| 		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); | ||||
|  | ||||
| 				arsort($ranks); | ||||
| 				break; | ||||
| 			case self::RANKING_TYPE_RECORDS: //TODO verify workable status | ||||
| 				if (!$this->maniaControl->pluginManager->isPluginActive('LocalRecordsPlugin')) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user