public static bool IsPlayerInCave(this TeleportationPlugin plugin, UnturnedPlayer player) { if (!plugin.Configuration.Instance.AllowCave) { if (LevelGround.checkSafe(player.Position) != player.Position) { return(true); } } return(false); }