Aspeed always positive, fix house error message
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user