anticheat safe armor

This commit is contained in:
hydrant
2021-04-11 05:17:50 +02:00
parent 350808ccbb
commit 33db8070e0
3 changed files with 10 additions and 4 deletions

View File

@@ -81,6 +81,12 @@ namespace ReallifeGamemode.Server.Extensions
player.Health = health;
}
public static void SafeSetArmor(this Player player, int armor)
{
AntiCheat.NoHealthAntiCheatForPlayer(player.Name);
player.Armor = armor;
}
public static void SetJailTime(this User user, bool killed)
{
if (user == null)