Fraktionsfahrzeugverkauf Abfrage wird jetzt richtig gezählt <=6
This commit is contained in:
@@ -551,7 +551,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var factionVehicleCount = dbContext.FactionVehicles.ToList().Where(v => v.Id == id && v.GetOwners().Contains(user.FactionId.Value)).Count();
|
var factionVehicleCount = dbContext.FactionVehicles.ToList().Where(v => v.GetOwners().Contains(user.FactionId.Value)).Count();
|
||||||
if (factionVehicleCount <= 6)
|
if (factionVehicleCount <= 6)
|
||||||
{
|
{
|
||||||
ChatService.ErrorMessage(player, "Die Fraktion braucht mindestens 6 Fahrzeuge");
|
ChatService.ErrorMessage(player, "Die Fraktion braucht mindestens 6 Fahrzeuge");
|
||||||
|
|||||||
Reference in New Issue
Block a user