diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index 7e9a10d9..7d0b1950 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -208,6 +208,12 @@ namespace ReallifeGamemode.Server.Commands return; } + User targetCop = target.GetUser(); + if(targetCop.FactionId == 1 || targetCop.FactionId == 2) + { + ChatService.ErrorMessage(player, "Du kannst dieser Person keine Wanteds geben."); + return; + } User targetUser = target.GetUser(); targetUser.GiveWanteds(player, amount, reason); }