kein einmieten wenn miete = 0

This commit is contained in:
hydrant
2020-03-25 19:23:37 +01:00
parent fb65ca3b8d
commit 40504bfb75

View File

@@ -355,6 +355,12 @@ namespace ReallifeGamemode.Server.Managers
return; return;
} }
if (house.RentalFee == 0)
{
player.SendChatMessage("~r~Dieses Haus hat keinen Platz für Mieter!");
return;
}
HouseRental newRental = new HouseRental HouseRental newRental = new HouseRental
{ {
HouseId = house.Id, HouseId = house.Id,