no health anti cheat when healing

This commit is contained in:
hydrant
2021-04-11 02:36:44 +02:00
parent 4126e22514
commit 34726abc04
8 changed files with 24 additions and 12 deletions

View File

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