@@ -3,21 +3,16 @@ |
||
| 3 | 3 | |
| 4 | 4 | namespace eXpansion\Bundle\Maps\Plugins\Gui; |
| 5 | 5 | |
| 6 | -use eXpansion\Bundle\Acme\Plugins\Gui\WindowFactory; |
|
| 7 | -use eXpansion\Bundle\LocalRecords\Entity\Record; |
|
| 8 | 6 | use eXpansion\Bundle\Maps\Plugins\Jukebox; |
| 9 | 7 | use eXpansion\Bundle\Maps\Services\JukeboxService; |
| 10 | 8 | use eXpansion\Framework\AdminGroups\Helpers\AdminGroups; |
| 11 | 9 | use eXpansion\Framework\Core\Helpers\Time; |
| 12 | 10 | use eXpansion\Framework\Core\Model\Gui\Grid\DataCollectionFactory; |
| 13 | -use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilder; |
|
| 14 | 11 | use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilderFactory; |
| 15 | 12 | use eXpansion\Framework\Core\Model\Gui\ManialinkInterface; |
| 16 | 13 | use eXpansion\Framework\Core\Model\Gui\WindowFactoryContext; |
| 17 | -use eXpansion\Framework\Core\Model\UserGroups\Group; |
|
| 18 | 14 | use eXpansion\Framework\Core\Plugins\Gui\GridWindowFactory; |
| 19 | 15 | use eXpansion\Framework\Gui\Components\uiButton; |
| 20 | -use FML\Controls\Frame; |
|
| 21 | 16 | use Maniaplanet\DedicatedServer\Structures\Map; |
| 22 | 17 | |
| 23 | 18 | |
@@ -93,7 +93,6 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Checks if a login or player has a certain permission or not. |
| 95 | 95 | * |
| 96 | - * @param string|Group|Player $login Login of the player to check for permission. |
|
| 97 | 96 | * @param string $permission The permission to check for. |
| 98 | 97 | * |
| 99 | 98 | * @return bool |
@@ -116,6 +115,9 @@ discard block |
||
| 116 | 115 | } |
| 117 | 116 | } |
| 118 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $permission |
|
| 120 | + */ |
|
| 119 | 121 | protected function hasLoginPermission($login, $permission) |
| 120 | 122 | { |
| 121 | 123 | if ($login instanceof Player) { |
@@ -4,17 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | use eXpansion\Framework\Core\Helpers\Translations; |
| 6 | 6 | use eXpansion\Framework\Core\Model\UserGroups\Group; |
| 7 | -use eXpansion\Framework\Gui\Components\uiButton; |
|
| 8 | -use eXpansion\Framework\Gui\Components\uiCheckbox; |
|
| 9 | 7 | use eXpansion\Framework\Gui\Components\uiLabel; |
| 10 | 8 | use FML\Controls\Frame; |
| 11 | 9 | use FML\Controls\Label; |
| 12 | 10 | use FML\Elements\Dico; |
| 13 | 11 | use FML\Elements\Format; |
| 14 | -use FML\Elements\SimpleScript; |
|
| 15 | 12 | use FML\Script\Features\ToggleInterface; |
| 16 | -use FML\Script\Script; |
|
| 17 | -use FML\Script\ScriptInclude; |
|
| 18 | 13 | use FML\Types\Container; |
| 19 | 14 | use FML\Types\Renderable; |
| 20 | 15 | |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | return parent::render($domDocument); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param boolean $translate |
|
| 71 | + */ |
|
| 69 | 72 | public function setTranslate($translate) |
| 70 | 73 | { |
| 71 | 74 | if ($translate) { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * |
| 28 | 28 | * @return mixed |
| 29 | 29 | */ |
| 30 | - public function onPodiumEnd($time ); |
|
| 30 | + public function onPodiumEnd($time); |
|
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | } |