[HOTFIX] points nicht gespeichert

This commit is contained in:
hydrant
2021-04-15 14:13:05 +02:00
parent a16b851a69
commit 230e37851c

View File

@@ -642,7 +642,6 @@ namespace ReallifeGamemode.Server.Managers
if (targetUser.Points < 0)
{
targetUser.Points = 0;
dbContext.SaveChanges();
}
else if (targetUser.Points >= 12)
{
@@ -654,12 +653,13 @@ namespace ReallifeGamemode.Server.Managers
targetUser.Points = 0;
targetUser.DriverLicenseVehicle = false;
targetUser.DriverLicenseBike = false;
dbContext.SaveChanges();
}
else
{
target.SendNotification($"~w~Grund: ~g~{reason}~w~. ~x~Du hast nun ~y~{targetUser.Points}/12 ~x~Strafpunkten.", true);
}
dbContext.SaveChanges();
}
[RemoteEvent("CLIENT:InteractionMenu_Ticket")]