From 3091ca62e250fe9a066dc00a37f8996e2c92ce74 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 15 Sep 2019 20:39:51 +0200 Subject: [PATCH] Aspeed always positive, fix house error message --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; }