From 7354ed278c1803a1262df7ff3255a1fd1adcbb6b Mon Sep 17 00:00:00 2001 From: Alexander Nell Date: Mon, 11 May 2020 17:14:10 +0200 Subject: [PATCH] Moved Default-Karma-Plugin constant --- core/Maps/MapCommands.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Maps/MapCommands.php b/core/Maps/MapCommands.php index 0550c636..7a3c74f6 100644 --- a/core/Maps/MapCommands.php +++ b/core/Maps/MapCommands.php @@ -11,6 +11,7 @@ use ManiaControl\Callbacks\CallbackManager; use ManiaControl\Commands\CommandListener; use ManiaControl\Logger; use ManiaControl\ManiaControl; +use ManiaControl\Manialinks\ElementBuilder; use ManiaControl\Manialinks\IconManager; use ManiaControl\Manialinks\ManialinkPageAnswerListener; use ManiaControl\Players\Player; @@ -427,7 +428,7 @@ class MapCommands implements CommandListener, ManialinkPageAnswerListener, Callb */ private function showMapListKarma($best, Player $player) { /** @var \MCTeam\KarmaPlugin $karmaPlugin */ - $karmaPlugin = $this->maniaControl->getPluginManager()->getPlugin(MapList::DEFAULT_KARMA_PLUGIN); + $karmaPlugin = $this->maniaControl->getPluginManager()->getPlugin(ElementBuilder::DEFAULT_KARMA_PLUGIN); if ($karmaPlugin) { $displayMxKarma = $this->maniaControl->getSettingManager()->getSettingValue($karmaPlugin, $karmaPlugin::SETTING_WIDGET_DISPLAY_MX);