From 786f988a6d2d4bbffab6ee2716e0cf0370b29228 Mon Sep 17 00:00:00 2001 From: balbo Date: Sun, 2 Aug 2020 23:26:24 +0200 Subject: [PATCH] healen bei 100hp --- ReallifeGamemode.Server/Commands/FactionCommands.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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);