From 2d9bc023d220d7e8f4a927838c21c23677dbb5cd Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 4 Jul 2021 22:41:58 +0200 Subject: [PATCH] =?UTF-8?q?shopvehicle-preise=20lassen=20sich=20=C3=BCber?= =?UTF-8?q?=20svbp=20=C3=A4ndern,=20textlabel=20werden=20aber=20nicht=20ak?= =?UTF-8?q?tualisiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index f70570b9..11ab0d76 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -3914,7 +3914,7 @@ namespace ReallifeGamemode.Server.Commands if (!player.IsInVehicle) { - ChatService.ErrorMessage(player, "Du sitzt nicht in einem Fahrzeug"); + ChatService.ErrorMessage(player, "Du sitzt in keinem Fahrzeug"); return; } @@ -3939,6 +3939,11 @@ namespace ReallifeGamemode.Server.Commands oldPrice = factionVehicle.BuyPrice; factionVehicle.BuyPrice = price; } + else if (serverVehicle is ShopVehicle shopVehicle) + { + oldPrice = shopVehicle.Price; + shopVehicle.Price = price; + } else { ChatService.ErrorMessage(player, "Dieses Fahrzeug ist weder ein User- noch ein Fraktionsfahrzeug");