fix jailtime

This commit is contained in:
hydrant
2021-04-07 23:50:56 +02:00
parent 0722816765
commit b3475efbe8

View File

@@ -45,10 +45,9 @@ namespace ReallifeGamemode.Server.Wanted
}
else
{
timeMinutes = (user.JailTime / 60);
timeMinutes = user.JailTime / 60;
}
player.TriggerEvent("jailTime", timeMinutes);
return;
}
}
@@ -77,7 +76,7 @@ namespace ReallifeGamemode.Server.Wanted
continue;
}
User user = player.GetUser();
User user = player.GetUser(dbContext);
if (user != null && user.Wanteds > 0 && !Jailtime.ContainsKey(user.Id))
{