butter, käse, eier, butter, käse

This commit is contained in:
hydrant
2020-04-17 18:35:40 +02:00
parent b04db84b38
commit 8797864b63
2 changed files with 33 additions and 3 deletions

View File

@@ -65,6 +65,10 @@ namespace ReallifeGamemode.Server.Extensions
return player.HasData("isLoggedIn") ? player.GetData<bool>("isLoggedIn") : false;
}
public static bool IsDuty(this Player player)
{
return player.HasData("duty") ? player.GetData<bool>("duty") : false;
}
public static Vector3 GetPositionFromPlayer(Player player, float distance, int offset = 0)
{
var pos = player.Position;