@@ -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); |
@@ -2,21 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace eXpansion\Bundle\VoteManager\Plugins; |
| 4 | 4 | |
| 5 | -use eXpansion\Bundle\Maps\Services\JukeboxService; |
|
| 6 | 5 | use eXpansion\Bundle\VoteManager\Plugins\Gui\Widget\UpdateVoteWidgetFactory; |
| 7 | 6 | use eXpansion\Bundle\VoteManager\Plugins\Gui\Widget\VoteWidgetFactory; |
| 8 | 7 | use eXpansion\Bundle\VoteManager\Plugins\Votes\AbstractVotePlugin; |
| 9 | 8 | use eXpansion\Bundle\VoteManager\Services\VoteService; |
| 10 | 9 | use eXpansion\Bundle\VoteManager\Structures\Vote; |
| 11 | 10 | use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceExpTimer; |
| 12 | -use eXpansion\Framework\Core\Helpers\ChatNotification; |
|
| 13 | 11 | use eXpansion\Framework\Core\Model\UserGroups\Group; |
| 14 | -use eXpansion\Framework\Core\Services\Console; |
|
| 15 | 12 | use eXpansion\Framework\Core\Storage\Data\Player; |
| 16 | -use eXpansion\Framework\Core\Storage\MapStorage; |
|
| 17 | 13 | use eXpansion\Framework\GameManiaplanet\DataProviders\Listener\ListenerInterfaceMpLegacyVote; |
| 18 | -use eXpansion\Framework\GameManiaplanet\DataProviders\Listener\ListenerInterfaceMpScriptPodium; |
|
| 19 | -use Maniaplanet\DedicatedServer\Connection; |
|
| 20 | 14 | |
| 21 | 15 | class VoteManager implements ListenerInterfaceMpLegacyVote, ListenerInterfaceExpTimer |
| 22 | 16 | { |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | public static function getSubscribedEvents() |
| 57 | 57 | { |
| 58 | 58 | return [ |
| 59 | - 'maniaplanet.game.BeginMap' => 'onManiaplanetGameBeginMap' , |
|
| 59 | + 'maniaplanet.game.BeginMap' => 'onManiaplanetGameBeginMap', |
|
| 60 | 60 | Factory::EVENT_CONNECTED => 'onConnectionToDedicated' |
| 61 | 61 | ]; |
| 62 | 62 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $this->currencyService->sendBill( |
| 104 | 104 | $bill, |
| 105 | - function () use ($bill, $login) { |
|
| 105 | + function() use ($bill, $login) { |
|
| 106 | 106 | $player = $this->playerStorage->getPlayerInfo($login); |
| 107 | 107 | $amount = $bill->getAmount(); |
| 108 | 108 | $this->chatNotification->sendMessage( |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | ['amount' => $amount, 'nickname' => $player->getNickName()] |
| 112 | 112 | ); |
| 113 | 113 | }, |
| 114 | - function ($error) use ($login) { |
|
| 114 | + function($error) use ($login) { |
|
| 115 | 115 | $this->chatNotification->sendMessage( |
| 116 | 116 | 'expansion_game_currency.donate.error', |
| 117 | 117 | $login, |