/cuff Command (not tested)

This commit is contained in:
2021-04-06 05:30:18 +02:00
parent c6e3c6fecb
commit cc5304f775
2 changed files with 34 additions and 0 deletions

View File

@@ -22,6 +22,11 @@ namespace ReallifeGamemode.Server.Util
player.SetSharedData("AnimationData", newAnimation);
}
public static bool HasAnimation(this Player player, string animationName)
{
return player.HasData("Animation") && (player.GetData<string>("AnimationData") == animationName);
}
public static void ClearAnimation(this Player player)
{
if (!player.HasData("Animation"))