Accessing non-static permission library in static method?Solved
 internal static void NewGroup(string name, string group)
            {
                string groupname = name;
                string oxidegroupname = group;

                if (CachedGroups.ContainsKey(groupname)) return;
                if (name == null | group == null) return;
                if (!permission.GroupExists(oxidegroupname)) return;
                
            }

I have this and it says that i need an object referance to user the permsiion.groupexists. I don't rly understand why it wont work. Any help is appreciated :)

You have a static method, you'd need to create an instance of your plugin if you really need to have static (generally not.)
5e13a8d5b2bc5.jpg Wulf
You have a static method, you'd need to create an instance of your plugin if you really need to have static (generally not.)

Thanks so much :)

Locked automatically