1. I'm working on a plugin and I'd like to use a C# extension method in it. I defined a static class with a static extension method inside of the "Oxide.Plugins" namespace and I get a warning:

    [Oxide] 2:06 AM [Warning] A plugin has polluted the global namespace by defining ExtensionClass: Modname

    Any way not to get this message and still use extensions? Does this warning cause any actual issues?
     
  2. Bump, I believe the Oxide devs would know this, I'm pretty sure it's generated by Oxide.............
     
  3. Bump!

    Why does Oxide warn about this? What is the impact of ignoring that warning?
     
  4. Wulf

    Wulf Community Admin

    @bawNg mentioned this when it was previously asked:
    Plugins can include other files no though, aside from that, the rest is pretty much the same.

    Aside from the warning to server owners, defining your own namespace will spam us with warnings about it as well. ;)
     
  5. Tried that and never could get it to work... not sure what I was doing wrong?!
    [DOUBLEPOST=1439501422][/DOUBLEPOST]
    I don't think plugins can include other files?

    Anyways I'll look at baton's code and see what I did wrong.