Fixed ServerRanking based on LocalRecords (namespace MCTeam mistake)

This commit is contained in:
Max Klaversma 2014-04-27 20:59:59 +02:00 committed by Steffen Schröder
parent 26ad7c927e
commit 348157c43b

View File

@ -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);