diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 35ebf980..c001c7f8 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -2283,6 +2283,12 @@ namespace ReallifeGamemode.Server.Commands return; } + if(modifier < 0) + { + ChatService.ErrorMessage(player, "Es muss positives Adminspeed angegeben werden"); + return; + } + player.Vehicle.SetSharedData("vehicleAdminSpeed", modifier); } @@ -2637,7 +2643,7 @@ namespace ReallifeGamemode.Server.Commands { if (!int.TryParse(option2, out int price)) { - ChatService.ErrorMessage(player, "~m~Benutzung: ~s~/house price [Price]"); + ChatService.SendMessage(player, "~m~Benutzung: ~s~/house price [Price]"); return; }