Fixed ServerRanking based on LocalRecords (namespace MCTeam mistake)
This commit is contained in:
parent
26ad7c927e
commit
348157c43b
@ -210,7 +210,7 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener {
|
|||||||
|
|
||||||
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('\MCTeam\LocalRecordsPlugin')) {
|
if (!$this->maniaControl->pluginManager->isPluginActive('MCTeam\LocalRecordsPlugin')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener {
|
|||||||
$result->free_result();
|
$result->free_result();
|
||||||
|
|
||||||
/** @var \MCTeam\LocalRecordsPlugin $localRecordsPlugin */
|
/** @var \MCTeam\LocalRecordsPlugin $localRecordsPlugin */
|
||||||
$localRecordsPlugin = $this->maniaControl->pluginManager->getPlugin('\MCTeam\LocalRecordsPlugin');
|
$localRecordsPlugin = $this->maniaControl->pluginManager->getPlugin('MCTeam\LocalRecordsPlugin');
|
||||||
$maps = $this->maniaControl->mapManager->getMaps();
|
$maps = $this->maniaControl->mapManager->getMaps();
|
||||||
foreach($maps as $map) {
|
foreach($maps as $map) {
|
||||||
$records = $localRecordsPlugin->getLocalRecords($map, $maxRecords);
|
$records = $localRecordsPlugin->getLocalRecords($map, $maxRecords);
|
||||||
|
Loading…
Reference in New Issue
Block a user