fix /tog command

This commit is contained in:
hydrant
2021-04-11 04:15:12 +02:00
parent 5ebbfb0638
commit f5c0bb4f6b
4 changed files with 36 additions and 5 deletions

View File

@@ -70,7 +70,10 @@ namespace ReallifeGamemode.Server.Events
{
Autowanted.Check_AutoWanted(killer, player);
string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet (" + Managers.WeaponManager.GetCauseOfDeathByHash(reason) + ")";
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN, shouldSendMessage: admin =>
{
return admin.HasData("togdeath");
});
}
}
}