From 2fa0633010c3da020daaa3ceae7f0cda1bec92c7 Mon Sep 17 00:00:00 2001 From: "michael.reiswich" Date: Wed, 24 Mar 2021 17:51:23 +0100 Subject: [PATCH] fix --- ReallifeGamemode.Server/Commands/FactionCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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