haus-konto geld abheben (30% steuern)
alten hausmanager entfernt
interiormanager in core verschoben
This commit is contained in:
hydrant
2020-03-30 22:25:09 +02:00
parent 4159043348
commit 73bd04b84f
21 changed files with 1930 additions and 753 deletions

View File

@@ -46,10 +46,11 @@ namespace ReallifeGamemode.Server.Core.Commands.Admin
};
dbContext.Houses.Add(house);
dbContext.SaveChanges();
houseManager.LoadHouse(house);
dbContext.SaveChanges();
player.SendNotification("Das Haus wurde erstellt");
return;
@@ -98,11 +99,12 @@ namespace ReallifeGamemode.Server.Core.Commands.Admin
}
nearHouse.Price = price;
dbContext.SaveChanges();
houseManager.RemoveHouse(nearHouse);
houseManager.LoadHouse(nearHouse);
dbContext.SaveChanges();
player.SendNotification("Der Hauspreis wurde gesetzt");
return;
}
@@ -122,11 +124,12 @@ namespace ReallifeGamemode.Server.Core.Commands.Admin
}
nearHouse.Type = option2;
dbContext.SaveChanges();
houseManager.RemoveHouse(nearHouse);
houseManager.LoadHouse(nearHouse);
dbContext.SaveChanges();
player.SendNotification("Der Haustyp wurde gesetzt");
return;