Protection Level during InstallSolved

Hello.. I've been away for a bit, but apparently my plugin that calls MonumentFinder is no longer able to install.  I understand that this likely has nothing to do with  MonumentFinder, and likely more to do with an update from Oxide or Facepunch.  However, I thought I'd reach out in case in the offchance you knew exactly what is happening.

Upon installing, I'm getting this error - MonumentFinder is inaccessible due to its protection level [CS0122].  

Below is the code that I'm using, which references MonumentFinder.  I know that there are many ways to do this, but it was working perfectly for a very long time.  It's specifically the MonumentFinder MonumentFinder line that is throwing it off.

Any ideas would be appreciated.

// Requires: MonumentFinder

using Newtonsoft.Json;
using Oxide.Core.Plugins;
using System.Collections.Generic;
using UnityEngine;
using System;
using Oxide.Core;
using Oxide.Core.Configuration;
using Oxide.Core.Libraries.Covalence;


namespace Oxide.Plugins
{
    [Info("PluginName", "me", "1.4.0")]
    [Description("my plugin description.")]
    class PluginName: RustPlugin
    {
        MonumentFinder MonumentFinder;

Typically I recommend taking only a runtime dependency on plugins rather than a compile time dependency. Doing so will resolve this case for sure. Just remove the Requires line at the top, and make sure you call Monument Finder.Call(...).

As for why this stopped working, it looks like I've marked MonumentFinder as internal since years ago, so maybe something changed in the compiler.

Thanks so much, really appreciate the assist!

Locked automatically