This commit is contained in:
2019-09-02 19:32:05 +02:00
parent e9eac2e94b
commit f29bd12757
14 changed files with 410 additions and 8 deletions

View File

@@ -600,6 +600,7 @@ namespace ReallifeGamemode.Server.Commands
ChatService.SendMessage(target, "~r~KICKINFO: ~w~Du wurdest von " + adminPlayername + " vom Server gekickt: " + reason);
target.Kick();
ChatService.Broadcast("~y~INFO: ~w~" + targetPlayername + " wurde von " + player.GetUser().AdminLevel.GetName() + " " + adminPlayername + " gekickt: " + reason);
}
@@ -2525,8 +2526,6 @@ namespace ReallifeGamemode.Server.Commands
dbContext.Users.Where(u => u.Id == nearHouse.OwnerId).First().HouseId = null;
}
dbContext.SaveChanges();
dbContext.Houses.Remove(nearHouse);
dbContext.SaveChanges();