diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index 5df9927c..9f25fd01 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; @@ -303,6 +304,12 @@ namespace ReallifeGamemode.Server.Commands return; } + if (target.Health == 100) + { + ChatService.ErrorMessage(player, "Der Spieler ist bereits voll geheilt."); + return; + } + using var dbContext = new DatabaseContext(); User targetUser = target.GetUser(dbContext);