fix duty vielleicht

This commit is contained in:
hydrant
2020-04-18 17:29:06 +02:00
parent 8797864b63
commit 1ff289d6fd

View File

@@ -67,7 +67,8 @@ namespace ReallifeGamemode.Server.Extensions
public static bool IsDuty(this Player player)
{
return player.HasData("duty") ? player.GetData<bool>("duty") : false;
var user = player.GetUser();
return user.GetData("duty", false);
}
public static Vector3 GetPositionFromPlayer(Player player, float distance, int offset = 0)
{