public function addMapToQueue($login, $id, $mxsite)
    {

        if (!$this->adminGroups->hasPermission($login, "maps.add")) {
            $this->chatNotification->sendMessage('expansion_mx.chat.nopermission', $login);

            return;
        }

        if ($this->downloadProgressing || count($this->addQueue) > 1) {

            $this->addQueue[] = ['mxid' => $id, 'mxsite' => $mxsite];
            $this->chatNotification->sendMessage("|info| Adding map to download queue...", $login);

            return;
        } else {
            $this->addMap($login, $id, $mxsite);
        }

    }
public function addMapToQueue($login, $id, $mxsite)
    {

        if (!$this->adminGroups->hasPermission($login, "maps.add")) {
            $this->chatNotification->sendMessage('expansion_mx.chat.nopermission', $login);

            return;
        }

        if ($this->downloadProgressing || count($this->addQueue) > 1) {

            $this->addQueue[] = ['mxid' => $id, 'mxsite' => $mxsite];
            $this->chatNotification->sendMessage("|info| Adding map to download queue...", $login);

            return;
        } else {
            $this->addMap($login, $id, $mxsite);
        }

    }
public function addMapToQueue ( $ login , $ id , $ mxsite ) { if ( ! $ this -> adminGroups -> hasPermission ( $ login , "maps.add" ) ) { $ this -> chatNotification -> sendMessage ( 'expansion_mx.chat.nopermission' , $ login ) ; return ; } if ( $ this -> downloadProgressing || count ( $ this -> addQueue ) > 1 ) { $ this -> addQueue [ ] = [ 'mxid' => $ id , 'mxsite' => $ mxsite ] ; $ this -> chatNotification -> sendMessage ( "|info| Adding map to download queue..." , $ login ) ; return ; } else { $ this -> addMap ( $ login , $ id , $ mxsite ) ; } }
add map to queue
@param string  $login
@param integer $id
@param string  $mxsite "TM" or "SM"
add map to queue