From 348157c43b6b9eec1d2237bea70b6bb3c81ba263 Mon Sep 17 00:00:00 2001 From: Max Klaversma Date: Sun, 27 Apr 2014 20:59:59 +0200 Subject: [PATCH] Fixed ServerRanking based on LocalRecords (namespace MCTeam mistake) --- application/plugins/ServerRanking.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/plugins/ServerRanking.php b/application/plugins/ServerRanking.php index 7394e9f6..d7239c23 100644 --- a/application/plugins/ServerRanking.php +++ b/application/plugins/ServerRanking.php @@ -210,7 +210,7 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener { break; case self::RANKING_TYPE_RECORDS: //TODO verify workable status - if (!$this->maniaControl->pluginManager->isPluginActive('\MCTeam\LocalRecordsPlugin')) { + if (!$this->maniaControl->pluginManager->isPluginActive('MCTeam\LocalRecordsPlugin')) { return; } @@ -230,7 +230,7 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener { $result->free_result(); /** @var \MCTeam\LocalRecordsPlugin $localRecordsPlugin */ - $localRecordsPlugin = $this->maniaControl->pluginManager->getPlugin('\MCTeam\LocalRecordsPlugin'); + $localRecordsPlugin = $this->maniaControl->pluginManager->getPlugin('MCTeam\LocalRecordsPlugin'); $maps = $this->maniaControl->mapManager->getMaps(); foreach($maps as $map) { $records = $localRecordsPlugin->getLocalRecords($map, $maxRecords);