Example #1
0
 function onServerStart()
 {
     try {
         $this->serverLogin = $this->connection->getMainServerPlayerInfo()->login;
         $this->maps = $this->connection->getMapList(-1, 0);
     } catch (\Exception $e) {
         $this->serverLogin = null;
         $this->maps = array();
     }
 }