public function __construct(Player $player, $joinMessage) { $this->player = $player; $this->joinMessage = $joinMessage; }