consider using $this->wg->User->getId() ?