diff --git a/ReallifeGamemode.Server/Wanted/Jail.cs b/ReallifeGamemode.Server/Wanted/Jail.cs index 56d2bd54..20563979 100644 --- a/ReallifeGamemode.Server/Wanted/Jail.cs +++ b/ReallifeGamemode.Server/Wanted/Jail.cs @@ -89,13 +89,13 @@ namespace ReallifeGamemode.Server.Wanted int timeMinutes = 0; - if (((int)(client.GetUser().JailTime / 60)) <= 1 && client.GetUser().JailTime != 0) + if (((int)(Jailtime[user.Id] / 60)) <= 1 && Jailtime[user.Id] != 0) { timeMinutes = 1; } else { - timeMinutes = (int)(client.GetUser().JailTime / 60); + timeMinutes = (int)(Jailtime[user.Id] / 60); } client.TriggerEvent("jailTime", JsonConvert.SerializeObject(timeMinutes));