fix falsche todesmeldung

This commit is contained in:
hydrant
2021-05-09 20:50:05 +02:00
parent 19847fb8d9
commit bbec150838

View File

@@ -51,7 +51,7 @@ namespace ReallifeGamemode.Server.Events
player.TriggerEvent("abortSpawnschutz");
//TODO: Zum Full Release entfernen
if (player.HasData("togdeath"))
if (player.HasData("togdeath") && user.IsAdmin(AdminLevel.ADMIN))
{
ChatService.SendMessage(player, "Du bist durch " + (killer?.Name ?? "Niemanden") + " gestorben: " + reason.ToString());
}
@@ -246,7 +246,7 @@ namespace ReallifeGamemode.Server.Events
}
player.SafeTeleport(new Vector3(-495.45, -336.33, 34.5), 0, true);
player.TriggerEvent("enableSpawnschutz");
}
}