add hanf log for admin remove

This commit is contained in:
hydrant
2021-05-29 03:19:54 +02:00
parent 89280e1f85
commit c975b744c2

View File

@@ -394,6 +394,7 @@ namespace ReallifeGamemode.Server.Managers
if (player.IsAdminDuty() && player.IsTSupport() && user.IsAdmin(AdminLevel.ADMIN))
{
logger.LogInformation("Admin {0} removed the cannabis plant {1} from {2}", player.Name, plant.Id, plant.PlantedBy.Name);
player.SendNotification($"Du hast die Hanf-Pflanze von ~y~{plant.PlantedBy.Name}~s~ entfernt");
plant.Harvested = true;
dbContext.SaveChanges();