Merge branch 'hotfix/points' into develop

This commit is contained in:
hydrant
2021-04-15 14:17:00 +02:00
2 changed files with 12 additions and 6 deletions

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")]