Подрубил счётчик участий в турнирах #12

This commit is contained in:
2022-06-27 14:44:30 +03:00
parent 1666e39160
commit dc710a8cb1
3 changed files with 30 additions and 13 deletions
@@ -1,6 +1,9 @@
<?php
namespace Insallah;
use Achievements;
use user;
class TournamentModel
{
@@ -182,11 +185,11 @@ class TournamentModel
$db = new Db();
$db::sql('update tournaments_users set death_time = unix_timestamp() where uid = ?', [$uid]);
self::teleport($uid, 9);
(new Achievements(user::start()))->updateCounter('trn');
}
/**
* Узнаём id турнира по id игрока.
* todo Проверить, возможно можно обращаться к уровню игрока.
*
* @param int $uid
*