fix jailtime
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user