public function __construct(Server $server)
 {
     parent::__construct();
     $this->server = $server;
     $this->gameID = $server->game->GameID;
     $this->gameName = $server->game->Name;
     $this->serverID = $server->ServerID;
     $this->serverIP = $server->ip;
     $this->port = $server->port;
     // Set the current user
     $bfacp = \App::make('bfadmincp');
     $this->user = $bfacp->user;
     if (!is_null($this->user)) {
         $this->setAdmin();
     }
 }
Example #2
0
 public function __construct(Server $server)
 {
     parent::__construct();
     $this->server = $server;
     $this->gameID = $server->game->GameID;
     $this->gameName = $server->game->Name;
     $this->serverID = $server->ServerID;
     $this->serverIP = $server->ip;
     $this->port = $server->port;
     if (!is_null($this->user)) {
         $this->setAdmin();
     }
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $path = app_path() . '/bfacp/ThirdParty/GeoIP2/GeoLite2-City.mmdb';
     $this->geo = new Reader($path);
 }