| @@ 46-58 (lines=13) @@ | ||
| 43 | * @param ChatNotification $chatNotification |
|
| 44 | * @param PlayerStorage $playerStorage |
|
| 45 | */ |
|
| 46 | function __construct( |
|
| 47 | Connection $connection, |
|
| 48 | Console $console, |
|
| 49 | AdminGroups $adminGroups, |
|
| 50 | ChatNotification $chatNotification, |
|
| 51 | PlayerStorage $playerStorage |
|
| 52 | ) { |
|
| 53 | $this->connection = $connection; |
|
| 54 | $this->console = $console; |
|
| 55 | $this->adminGroups = $adminGroups; |
|
| 56 | $this->chatNotification = $chatNotification; |
|
| 57 | $this->playerStorage = $playerStorage; |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * Called when a player chats. |
|
| @@ 51-65 (lines=15) @@ | ||
| 48 | * @param ChatNotification $chatNotification |
|
| 49 | * @param PlayerStorage $playerStorage |
|
| 50 | */ |
|
| 51 | function __construct( |
|
| 52 | Connection $connection, |
|
| 53 | Console $console, |
|
| 54 | AdminGroups $adminGroups, |
|
| 55 | MapStorage $mapStorage, |
|
| 56 | ChatNotification $chatNotification, |
|
| 57 | PlayerStorage $playerStorage |
|
| 58 | ) { |
|
| 59 | $this->connection = $connection; |
|
| 60 | $this->console = $console; |
|
| 61 | $this->adminGroups = $adminGroups; |
|
| 62 | $this->mapStorage = $mapStorage; |
|
| 63 | $this->chatNotification = $chatNotification; |
|
| 64 | $this->playerStorage = $playerStorage; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Set the status of the plugin |
|
| @@ 35-45 (lines=11) @@ | ||
| 32 | * @param ChatNotification $chatNotification |
|
| 33 | * @param AdminGroups $adminGroups |
|
| 34 | */ |
|
| 35 | public function __construct( |
|
| 36 | Connection $connection, |
|
| 37 | Console $console, |
|
| 38 | ChatNotification $chatNotification, |
|
| 39 | AdminGroups $adminGroups |
|
| 40 | ) { |
|
| 41 | $this->connection = $connection; |
|
| 42 | $this->console = $console; |
|
| 43 | $this->chatNotification = $chatNotification; |
|
| 44 | $this->adminGroups = $adminGroups; |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * @inheritdoc |
|