protected function __construct($lobbyLogin, $scriptName, $titleIdString)
 {
     $config = \ManiaLive\Database\Config::getInstance();
     $this->db = Connection::getConnection($config->host, $config->username, $config->password, $config->database, $config->type, $config->port);
     Dispatcher::register(Event::getClass(), $this, Event::ON_PLAYER_ALLIES_CHANGED | Event::ON_PLAYER_CONNECT | Event::ON_PLAYER_DISCONNECT);
     $this->lobbyLogin = $lobbyLogin;
     $this->scriptName = $scriptName;
     $this->titleIdString = $titleIdString;
     $this->createTable();
 }
 function __construct()
 {
     $config = \ManiaLive\Database\Config::getInstance();
     $this->db = Connection::getConnection($config->host, $config->username, $config->password, $config->database, $config->type, $config->port);
 }