| @@ 43-49 (lines=7) @@ | ||
| 40 | /** |
|
| 41 | * @inheritdoc |
|
| 42 | */ |
|
| 43 | public function onPlayerConnect(Player $player) |
|
| 44 | { |
|
| 45 | $msg = '$fffHello, ' . $player->getNickName() . ' $n$fff($888' . $player->getLogin() . '$fff)'; |
|
| 46 | if ($this->enabled) { |
|
| 47 | $this->connection->chatSendServerMessage($msg); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * @inheritdoc |
|
| @@ 54-60 (lines=7) @@ | ||
| 51 | /** |
|
| 52 | * @inheritdoc |
|
| 53 | */ |
|
| 54 | public function onPlayerDisconnect(Player $player, $disconnectionReason) |
|
| 55 | { |
|
| 56 | $msg = '$fffSee you, ' . $player->getNickName() . ' $n$fff($888' . $player->getLogin() . '$fff)'; |
|
| 57 | if ($this->enabled) { |
|
| 58 | $this->connection->chatSendServerMessage($msg); |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @inheritdoc |
|