public function canJoin(Player $player) { return $this->arena->getPlayerManager()->getPlayersCount() < $this->arena->getStructureManager()->getMaxPlayer() and !$this->arena->getStatusManager()->isStarting() and !$this->arena->getStatusManager()->isRunning(); }