Aspeed always positive, fix house error message

This commit is contained in:
hydrant
2019-09-15 20:39:51 +02:00
parent d6b5b59759
commit 3091ca62e2

View File

@@ -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;
}