public function create($group)
    {
        if (is_string($group)) {
            $group = $this->groupFactory->createForPlayer($group);
        } else {
            if (is_array($group)) {
                $group = $this->groupFactory->createForPlayers($group);
            }
        }

        if (!is_null($this->guiHandler->getManialink($group, $this))) {
            $this->update($group);

            return $group;
        }


        $ml = $this->createManialink($group);
        $this->guiHandler->addToDisplay($ml, $this);

        $this->createContent($ml);
        $this->updateContent($ml);

        return $group;
    }
public function create($group)
    {
        if (is_string($group)) {
            $group = $this->groupFactory->createForPlayer($group);
        } else {
            if (is_array($group)) {
                $group = $this->groupFactory->createForPlayers($group);
            }
        }

        if (!is_null($this->guiHandler->getManialink($group, $this))) {
            $this->update($group);

            return $group;
        }


        $ml = $this->createManialink($group);
        $this->guiHandler->addToDisplay($ml, $this);

        $this->createContent($ml);
        $this->updateContent($ml);

        return $group;
    }
public function create ( $ group ) { if ( is_string ( $ group ) ) { $ group = $ this -> groupFactory -> createForPlayer ( $ group ) ; } else { if ( is_array ( $ group ) ) { $ group = $ this -> groupFactory -> createForPlayers ( $ group ) ; } } if ( ! is_null ( $ this -> guiHandler -> getManialink ( $ group , $ this ) ) ) { $ this -> update ( $ group ) ; return $ group ; } $ ml = $ this -> createManialink ( $ group ) ; $ this -> guiHandler -> addToDisplay ( $ ml , $ this ) ; $ this -> createContent ( $ ml ) ; $ this -> updateContent ( $ ml ) ; return $ group ; }
Creates a new manialink.

@param string|array|Group $group

@return Group
Creates a new manialink .