FML/ManiaCode.php
public function addJoinServer($loginOrIp = null, $port = null)
    {
        $serverElement = new JoinServer($loginOrIp, $port);
        return $this->addElement($serverElement);
    }
public function addJoinServer($loginOrIp = null, $port = null)
    {
        $serverElement = new JoinServer($loginOrIp, $port);
        return $this->addElement($serverElement);
    }
public function addJoinServer ( $ loginOrIp = null , $ port = null ) { $ serverElement = new JoinServer ( $ loginOrIp , $ port ) ; return $ this -> addElement ( $ serverElement ) ; }
Join a server

@api
@param string $loginOrIp (optional) Server login or ip
@param int    $port      (optional) Server port
@return static
Join a server