This commit is contained in:
Lukas Moungos
2019-07-19 22:45:57 +02:00
parent 2a3d97265b
commit adfc6fe8e9
3 changed files with 35 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ using ReallifeGamemode.Server.Extensions;
using ReallifeGamemode.Server.Factions.Medic;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Services;
using ReallifeGamemode.Server.Wanted;
using System.Linq;
using System.Text.RegularExpressions;
@@ -278,11 +279,7 @@ namespace ReallifeGamemode.Server.Commands
User targetUser = target.GetUser();
if (targetUser.JailTime > 0)
{
using (var dbContext = new DatabaseContext())
{
target.GetUser(dbContext).JailTime = 0;
dbContext.SaveChanges();
}
Jail.Release_Jail(target, reason);
}
else
{