@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use eXpansion\Framework\Core\Services\Console; |
| 13 | 13 | use eXpansion\Framework\Core\Storage\MapStorage; |
| 14 | 14 | use eXpansion\Framework\Core\Storage\PlayerStorage; |
| 15 | -use Maniaplanet\DedicatedServer\Connection; |
|
| 16 | 15 | use Maniaplanet\DedicatedServer\Structures\Map; |
| 17 | 16 | |
| 18 | 17 | |
@@ -51,7 +51,6 @@ |
||
| 51 | 51 | * @param DataCollectionFactory $dataCollectionFactory |
| 52 | 52 | * @param GridBuilderFactory $gridBuilderFactory |
| 53 | 53 | * @param ChatCommandDataProvider $chatCommandDataProvider |
| 54 | - * @param Connection $connection |
|
| 55 | 54 | * @param AdminGroups $adminGroups |
| 56 | 55 | * @param ChatNotification $chatNotification |
| 57 | 56 | */ |
@@ -57,7 +57,6 @@ |
||
| 57 | 57 | * @param DataCollectionFactory $dataCollectionFactory |
| 58 | 58 | * @param GridBuilderFactory $gridBuilderFactory |
| 59 | 59 | * @param ChatCommandDataProvider $chatCommandDataProvider |
| 60 | - * @param Connection $connection |
|
| 61 | 60 | * @param AdminGroups $adminGroups |
| 62 | 61 | */ |
| 63 | 62 | public function __construct( |
@@ -42,7 +42,6 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * BestCheckpoints constructor. |
| 44 | 44 | * |
| 45 | - * @param Factory $factory |
|
| 46 | 45 | * @param PlayerStorage $playerStorage |
| 47 | 46 | * @param BestCheckpointsWidgetFactory $widget |
| 48 | 47 | * @param UpdaterWidgetFactory $updater |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use eXpansion\Framework\Core\Services\Console; |
| 8 | 8 | use eXpansion\Framework\Core\Services\DedicatedConnection\Factory; |
| 9 | 9 | use eXpansion\Framework\Core\Storage\PlayerStorage; |
| 10 | -use Maniaplanet\DedicatedServer\Connection; |
|
| 11 | 10 | use Maniaplanet\DedicatedServer\InvalidArgumentException; |
| 12 | 11 | use Maniaplanet\DedicatedServer\Xmlrpc\UnknownPlayerException; |
| 13 | 12 | use Psr\Log\LoggerInterface; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use eXpansion\Framework\Core\Services\Application; |
| 8 | 8 | use eXpansion\Framework\Core\Services\DedicatedConnection\Factory; |
| 9 | 9 | use eXpansion\Framework\Core\Storage\PlayerStorage; |
| 10 | -use Maniaplanet\DedicatedServer\Connection; |
|
| 11 | 10 | use Maniaplanet\DedicatedServer\Structures\PlayerInfo; |
| 12 | 11 | |
| 13 | 12 | /** |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use eXpansion\Framework\Core\Services\DedicatedConnection\Factory; |
| 13 | 13 | use eXpansion\Framework\Core\Storage\Data\Player; |
| 14 | 14 | use eXpansion\Framework\GameManiaplanet\DataProviders\Listener\ListenerInterfaceMpLegacyPlayer; |
| 15 | -use Maniaplanet\DedicatedServer\Connection; |
|
| 16 | 15 | use oliverde8\AssociativeArraySimplified\AssociativeArray; |
| 17 | 16 | use Psr\Log\LoggerInterface; |
| 18 | 17 | |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | $size = strlen($mlData['ml']); |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | - $logins = array_filter($mlData['logins'], function ($value) { |
|
| 167 | + $logins = array_filter($mlData['logins'], function($value) { |
|
| 168 | 168 | return $value != ''; |
| 169 | 169 | }); |
| 170 | 170 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $this->console->getSfStyleOutput()->error( |
| 91 | 91 | [ |
| 92 | 92 | "Looks like your Dedicated server is either offline or has wrong config settings", |
| 93 | - "Error message: " . $lastExcelption->getMessage() |
|
| 93 | + "Error message: ".$lastExcelption->getMessage() |
|
| 94 | 94 | ] |
| 95 | 95 | ); |
| 96 | 96 | $this->logger->error("Unable to open connection for Dedicated server", ["exception" => $lastExcelption]); |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | ] |
| 149 | 149 | ); |
| 150 | 150 | } |
| 151 | - } while($attempts < $maxAttempts && !is_null($lastExcelption)); |
|
| 151 | + } while ($attempts < $maxAttempts && !is_null($lastExcelption)); |
|
| 152 | 152 | |
| 153 | 153 | return $lastExcelption; |
| 154 | 154 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | try { |
| 114 | - $currentMap = $this->factory->getConnection()->getCurrentMapInfo(); // sync better |
|
| 114 | + $currentMap = $this->factory->getConnection()->getCurrentMapInfo(); // sync better |
|
| 115 | 115 | } catch (\Exception $e) { |
| 116 | 116 | // fallback to use map storage |
| 117 | 117 | $currentMap = $this->mapStorage->getMapByIndex($curMapIndex); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | try { |
| 131 | - $nextMap = $this->factory->getConnection()->getNextMapInfo(); // sync better |
|
| 131 | + $nextMap = $this->factory->getConnection()->getNextMapInfo(); // sync better |
|
| 132 | 132 | } catch (\Exception $e) { |
| 133 | 133 | // fallback to use map storage |
| 134 | 134 | $nextMap = $this->mapStorage->getMapByIndex($nextMapIndex); |