Livery bei /vlivery speichern
This commit is contained in:
@@ -1307,6 +1307,16 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
Vehicle playerVeh = player.Vehicle;
|
Vehicle playerVeh = player.Vehicle;
|
||||||
|
|
||||||
playerVeh.Livery = livery;
|
playerVeh.Livery = livery;
|
||||||
|
|
||||||
|
using (var dbContext = new DatabaseContext())
|
||||||
|
{
|
||||||
|
ServerVehicle serverVeh = VehicleManager.GetServerVehicleFromVehicle(playerVeh, dbContext);
|
||||||
|
if (serverVeh != null)
|
||||||
|
{
|
||||||
|
serverVeh.Livery = livery;
|
||||||
|
dbContext.SaveChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("vcolor", "~m~Benutzung: ~s~/vcolor [Farb-ID1] [Farb-ID2]")]
|
[Command("vcolor", "~m~Benutzung: ~s~/vcolor [Farb-ID1] [Farb-ID2]")]
|
||||||
|
|||||||
Reference in New Issue
Block a user