diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index c210a747..8bcfb00c 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -177,7 +177,7 @@ namespace ReallifeGamemode.Server.Commands [Command("lc", "~m~Benutzung: ~s~/lc [Nachricht]", GreedyArg = true)] public void CmdFactionLc(Player player, string message) { - if (player.GetUser()?.FactionId == null || player.GetUser().FactionLeader == false || player.HasData("toglc") == false ) + if ((player.GetUser()?.FactionId == null || player.GetUser().FactionLeader == false) || player.HasData("toglc") == false ) { ChatService.NotAuthorized(player); return; @@ -369,7 +369,7 @@ namespace ReallifeGamemode.Server.Commands target.Health = 100; target.SendNotification($"Du wurdest von ~g~{player.Name} ~s~ für ~g~{price.ToMoneyString()} geheilt.", false); player.SendNotification($"Du hast ~g~{target.Name} ~s~ für {price.ToMoneyString()} geheilt.", false); - Medic.delHealTask(target); + player.TriggerEvent("delHealTask"); } #endregion Sanitäter Commands